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(!offscreenCanvas)offscreenCanvas=GL.offscreenCanvases[target]||(target=='canvas'&&Object.keys(GL.offscreenCanvases)[0]);// First looks up by DOM ID ("#myCanvasElement"), second looks up by DOM element name (first found element of type <canvas>)
if(typeofGL!=='undefined'&&GL.offscreenCanvases['canvas'])returnGL.offscreenCanvases['canvas']['offscreenCanvas'];// TODO: Remove this line, target '#canvas' should refer only to Module['canvas'], not to GL.offscreenCanvases['canvas'] - but need stricter tests to be able to remove this line.
341
+
if(typeofGL!=='undefined'&&GL.offscreenCanvases['canvas'])returnGL.offscreenCanvases['canvas'];// TODO: Remove this line, target '#canvas' should refer only to Module['canvas'], not to GL.offscreenCanvases['canvas'] - but need stricter tests to be able to remove this line.
if(typeofOffscreenCanvas!=='undefined'&&canvasinstanceofOffscreenCanvas)console.log('emscripten_webgl_create_context: Creating an OffscreenCanvas-based WebGL context on target "'+targetStr+'"');
2268
2270
elseif(typeofHTMLCanvasElement!=='undefined'&&canvasinstanceofHTMLCanvasElement)console.log('emscripten_webgl_create_context: Creating an HTMLCanvasElement-based WebGL context on target "'+targetStr+'"');
@@ -2292,9 +2294,12 @@ var LibraryJSEvents = {
2292
2294
console.log('explicitSwapControl requested: canvas.transferControlToOffscreen() on canvas "'+targetStr+'" to get .commit() function and not rely on implicit WebGL swap');
console.error('OffscreenCanvas is supported, and canvas "'+canvas.id+'" has already before been transferred offscreen, but there is no known OffscreenCanvas with that name!');
0 commit comments