We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6165205 commit ff10486Copy full SHA for ff10486
src/easeljs/display/StageGL.js
@@ -2238,7 +2238,7 @@ this.createjs = this.createjs||{};
2238
*/
2239
p._loadTextureImage = function (gl, image) {
2240
var srcPath, texture, msg;
2241
- if (image instanceof Image && image.src) {
+ if ((image instanceof Image || image instanceof HTMLImageElement) && image.src) {
2242
srcPath = image.src;
2243
} else if (image instanceof HTMLCanvasElement) {
2244
image._isCanvas = true; //canvases are already loaded and assumed unique so note that
0 commit comments