|
@@ -14,7 +14,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
// also OffscreenCanvas.getContext("webgl"), but not OffscreenCanvas.getContext("2d")!
|
|
// also OffscreenCanvas.getContext("webgl"), but not OffscreenCanvas.getContext("2d")!
|
|
|
|
|
|
var useOffscreenCanvas = typeof OffscreenCanvas !== 'undefined'
|
|
var useOffscreenCanvas = typeof OffscreenCanvas !== 'undefined'
|
|
- && (new OffscreenCanvas(1, 1).getContext("2d")) !== null;
|
|
|
|
|
|
+ && ( new OffscreenCanvas( 1, 1 ).getContext( "2d" ) ) !== null;
|
|
|
|
|
|
function createCanvas( width, height ) {
|
|
function createCanvas( width, height ) {
|
|
|
|
|