emscripten: Fix framebuffer array creation optimisation

This commit is contained in:
Charlie Birks 2020-04-15 15:22:39 +01:00 committed by Charlie Birks
parent b4f11a3669
commit abc04270b7
1 changed files with 1 additions and 0 deletions

View File

@ -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;