From 348ea6037bfd407d94da883124a80aafb6749c1b Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 16 Jan 2025 20:57:21 +0100 Subject: [PATCH] Fix exr export --- base/sources/parser_exr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/sources/parser_exr.ts b/base/sources/parser_exr.ts index 42351c3b1..f26e77085 100644 --- a/base/sources/parser_exr.ts +++ b/base/sources/parser_exr.ts @@ -8,7 +8,7 @@ let _parser_exr_out: u8[]; let _parser_exr_src_view: buffer_t; let _parser_exr_write_line: (byte_pos: i32)=> void; -function parser_exr_write_string(out: i32[], str: string) { +function parser_exr_write_string(out: u8[], str: string) { for (let i: i32 = 0; i < str.length; ++i) { array_push(out, char_code_at(str, i)); } @@ -326,5 +326,5 @@ function parser_exr_run(width: i32, height: i32, src: buffer_t, bits: i32 = 16, pos += width * stride; } - return u8_array_create_from_array(out).buffer; + return out; }