Skip to content

Commit cd4d922

Browse files
committed
Added isCanvas property
1 parent 8b2f75a commit cd4d922

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

v3/src/textures/TextureSource.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var TextureSource = new Class({
2525

2626
this.scaleMode = ScaleModes.DEFAULT;
2727

28+
this.isCanvas = (source instanceof HTMLCanvasElement);
29+
2830
this.isPowerOf2 = IsSizePowerOfTwo(this.width, this.height);
2931

3032
this.init(game);

0 commit comments

Comments
 (0)