Browse Source

Merge pull request #13926 from 06wj/patch2

Add missing isCanvasTexture property
Mr.doob 7 years ago
parent
commit
4d898b7006
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/textures/CanvasTexture.js

+ 1 - 1
src/textures/CanvasTexture.js

@@ -14,6 +14,6 @@ function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, for
 
 
 CanvasTexture.prototype = Object.create( Texture.prototype );
 CanvasTexture.prototype = Object.create( Texture.prototype );
 CanvasTexture.prototype.constructor = CanvasTexture;
 CanvasTexture.prototype.constructor = CanvasTexture;
-
+CanvasTexture.prototype.isCanvasTexture = true;
 
 
 export { CanvasTexture };
 export { CanvasTexture };