Skip to content

Commit f96bbe1

Browse files
committed
Add support for getImage to StageGL Bitmaps
Compatibility with VideoBuffer.
1 parent 6f0f714 commit f96bbe1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/easeljs/display/StageGL.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ this.createjs = this.createjs||{};
15311531
} else if (item._webGLRenderStyle === 2) {
15321532
// this is a Bitmap class
15331533
foundImage = item.image;
1534+
if (foundImage.getImage) { foundImage = foundImage.getImage(); }
15341535
} else if (item._webGLRenderStyle === 1) {
15351536
// this is a SpriteSheet, we can't tell which image we used from the list easily so remove them all!
15361537
for (i = 0, l = item.spriteSheet._images.length; i < l; i++) {

0 commit comments

Comments
 (0)