Skip to content

Commit 47aff8c

Browse files
Handle edge case for disposed/GPU-only graphics.
1 parent 8d3e3e5 commit 47aff8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flixel/addons/display/FlxTiledSprite.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class FlxTiledSprite extends FlxStrip
219219

220220
function updateVerticesData():Void
221221
{
222-
if (graphic == null)
222+
if (graphic == null || graphic.imageFrame == null)
223223
return;
224224

225225
var frame:FlxFrame = graphic.imageFrame.frame;

0 commit comments

Comments
 (0)