diff --git a/flixel/FlxG.hx b/flixel/FlxG.hx index d067ae377a..fd66a2bd41 100644 --- a/flixel/FlxG.hx +++ b/flixel/FlxG.hx @@ -539,10 +539,6 @@ class FlxG FlxG.height = height; initRenderMethod(); - #if FLX_OPENGL_AVAILABLE - // Query once when window is created and cache for later - bitmap.get_maxTextureSize(); - #end FlxG.initialWidth = width; FlxG.initialHeight = height; diff --git a/flixel/system/frontEnds/BitmapFrontEnd.hx b/flixel/system/frontEnds/BitmapFrontEnd.hx index 7a741254f2..1fba107cc2 100644 --- a/flixel/system/frontEnds/BitmapFrontEnd.hx +++ b/flixel/system/frontEnds/BitmapFrontEnd.hx @@ -343,8 +343,6 @@ class BitmapFrontEnd #if FLX_OPENGL_AVAILABLE static var _maxTextureSize = -1; - - @:allow(flixel.FlxG) function get_maxTextureSize():Int { if (_maxTextureSize < 0 && FlxG.stage.window.context.attributes.hardware)