From 0197a32478f1af03947fda1ad101cc275b4ec402 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 20 Oct 2025 11:02:37 +0200 Subject: [PATCH] Fix bgra flip --- paint/sources/export_texture.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paint/sources/export_texture.ts b/paint/sources/export_texture.ts index f6fa2d25..0ac9123a 100644 --- a/paint/sources/export_texture.ts +++ b/paint/sources/export_texture.ts @@ -439,6 +439,11 @@ function export_texture_write_texture(file: string, pixels: buffer_t, type: i32 } if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) { + /// if IRON_BGRA + if (format == 2) { // RGB1 + export_arm_bgra_swap(pixels); + } + /// end let image: gpu_texture_t = gpu_create_texture_from_bytes(pixels, res_x, res_y); map_set(data_cached_images, file, image); let ar: string[] = string_split(file, path_sep);