From abc04270b778fd9abdc35d88e9874688fc9cfeb5 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Wed, 15 Apr 2020 15:22:39 +0100 Subject: [PATCH] emscripten: Fix framebuffer array creation optimisation --- src/video/emscripten/SDL_emscriptenframebuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/emscripten/SDL_emscriptenframebuffer.c b/src/video/emscripten/SDL_emscriptenframebuffer.c index 219d48c50..95087dab1 100644 --- a/src/video/emscripten/SDL_emscriptenframebuffer.c +++ b/src/video/emscripten/SDL_emscriptenframebuffer.c @@ -109,6 +109,7 @@ int Emscripten_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rec if (SDL2.data32Data !== data) { SDL2.data32 = new Int32Array(data.buffer); SDL2.data8 = new Uint8Array(data.buffer); + SDL2.data32Data = data; } var data32 = SDL2.data32; num = data32.length;