Skip to content

Commit 0197a32

Browse files
committed
Fix bgra flip
1 parent bb49a03 commit 0197a32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

paint/sources/export_texture.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ function export_texture_write_texture(file: string, pixels: buffer_t, type: i32
439439
}
440440

441441
if (context_raw.layers_destination == export_destination_t.PACK_INTO_PROJECT) {
442+
/// if IRON_BGRA
443+
if (format == 2) { // RGB1
444+
export_arm_bgra_swap(pixels);
445+
}
446+
/// end
442447
let image: gpu_texture_t = gpu_create_texture_from_bytes(pixels, res_x, res_y);
443448
map_set(data_cached_images, file, image);
444449
let ar: string[] = string_split(file, path_sep);

0 commit comments

Comments
 (0)