Skip to content

Commit 0b03b39

Browse files
authored
check renderTile rather than window.context.hardware
1 parent 86c29d8 commit 0b03b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flixel/system/frontEnds/BitmapFrontEnd.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ class BitmapFrontEnd
347347
@:allow(flixel.FlxG)
348348
function get_maxTextureSize():Int
349349
{
350-
if (_maxTextureSize < 0 && FlxG.stage.window.context.attributes.hardware)
351-
_maxTextureSize = cast GL.getParameter(GL.MAX_TEXTURE_SIZE);
350+
if (_maxTextureSize < 0)
351+
_maxTextureSize = FlxG.renderTile ? cast GL.getParameter(GL.MAX_TEXTURE_SIZE) : 0;
352352

353353
return _maxTextureSize;
354354
}

0 commit comments

Comments
 (0)