You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(useWebGL&&Module.ctx&&canvas==Module['canvas'])returnModule.ctx;// no need to recreate GL context if it's already been created for this canvas.
195
+
if(useWebGL&&Module['ctx']&&canvas==Module['canvas'])returnModule['ctx'];// no need to recreate GL context if it's already been created for this canvas.
196
196
197
197
varctx;
198
198
varcontextHandle;
@@ -235,7 +235,7 @@ var LibraryBrowser = {
235
235
#if ASSERTIONS
236
236
if(!useWebGL)assert(typeofGLctx=='undefined','cannot set in module if GLctx is used, but we are a non-GL context that would replace it');
Copy file name to clipboardExpand all lines: src/library_eventloop.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ LibraryJSEventLoop = {
472
472
}
473
473
474
474
#if ASSERTIONS
475
-
if(MainLoop.method==='timeout'&&Module.ctx){
475
+
if(MainLoop.method==='timeout'&&Module['ctx']){
476
476
warnOnce('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
477
477
MainLoop.method='';// just warn once per call to set main loop
0 commit comments