Browse Source

WebGLTextures: Restore order in if-statement.

Mugen87 6 years ago
parent
commit
0c407a8661
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

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

@@ -42,7 +42,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 
 			// only perform resize for certain image types
 			// only perform resize for certain image types
 
 
-			if ( image instanceof ImageBitmap || image instanceof HTMLImageElement || image instanceof HTMLCanvasElement ) {
+			if ( image instanceof HTMLImageElement || image instanceof HTMLCanvasElement || image instanceof ImageBitmap ) {
 
 
 				var floor = needsPowerOfTwo ? _Math.floorPowerOfTwo : Math.floor;
 				var floor = needsPowerOfTwo ? _Math.floorPowerOfTwo : Math.floor;