Skip to content

Commit c0f78de

Browse files
sbc100slouken
authored andcommitted
[emscripten] Remove reference to Module['createContext']
Backported from #12970
1 parent 17e6208 commit c0f78de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/emscripten/SDL_emscriptenframebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int Emscripten_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect
7979
if (!Module['SDL2']) Module['SDL2'] = {};
8080
var SDL2 = Module['SDL2'];
8181
if (SDL2.ctxCanvas !== Module['canvas']) {
82-
SDL2.ctx = Module['createContext'](Module['canvas'], false, true);
82+
SDL2.ctx = Browser.createContext(Module['canvas'], false, true);
8383
SDL2.ctxCanvas = Module['canvas'];
8484
}
8585
if (SDL2.w !== w || SDL2.h !== h || SDL2.imageCtx !== SDL2.ctx) {

0 commit comments

Comments
 (0)