Skip to content

Commit d127dc3

Browse files
committed
export Browser.createContext, so that SDL2 can use it
1 parent 84cb536 commit d127dc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library_browser.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ mergeInto(LibraryManager.library, {
88
'Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };\n' +
99
'Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };\n' +
1010
'Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };\n' +
11-
'Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }',
11+
'Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }\n' +
12+
'Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) }',
1213
$Browser: {
1314
mainLoop: {
1415
scheduler: null,

0 commit comments

Comments
 (0)