Skip to content

Commit ff10486

Browse files
author
David Gillen
committed
Fixes: #969
1 parent 6165205 commit ff10486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easeljs/display/StageGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ this.createjs = this.createjs||{};
22382238
*/
22392239
p._loadTextureImage = function (gl, image) {
22402240
var srcPath, texture, msg;
2241-
if (image instanceof Image && image.src) {
2241+
if ((image instanceof Image || image instanceof HTMLImageElement) && image.src) {
22422242
srcPath = image.src;
22432243
} else if (image instanceof HTMLCanvasElement) {
22442244
image._isCanvas = true; //canvases are already loaded and assumed unique so note that

0 commit comments

Comments
 (0)