Skip to content

Commit

Permalink
Add support for getImage to StageGL Bitmaps
Browse files Browse the repository at this point in the history
Compatibility with VideoBuffer.
  • Loading branch information
gskinner committed Feb 16, 2019
1 parent 6f0f714 commit f96bbe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/easeljs/display/StageGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@ this.createjs = this.createjs||{};
} else if (item._webGLRenderStyle === 2) {
// this is a Bitmap class
foundImage = item.image;
if (foundImage.getImage) { foundImage = foundImage.getImage(); }
} else if (item._webGLRenderStyle === 1) {
// this is a SpriteSheet, we can't tell which image we used from the list easily so remove them all!
for (i = 0, l = item.spriteSheet._images.length; i < l; i++) {
Expand Down

0 comments on commit f96bbe1

Please sign in to comment.