Explorar el Código

Merge pull request #12994 from haroldiedema/dev

Allow instantiating WebGLTextures from a worker
Mr.doob hace 7 años
padre
commit
44638ad962
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

+ 1 - 1
src/renderers/webgl/WebGLTextures.js

@@ -7,7 +7,7 @@ import { _Math } from '../../math/Math.js';
 
 
 function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) {
 function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) {
 
 
-	var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof window.WebGL2RenderingContext );
+	var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof WebGL2RenderingContext );
 	var _videoTextures = {};
 	var _videoTextures = {};
 
 
 	//
 	//