Description
When attempting to create a FlxSprite by passing in a png with a size of 1050x140, I get the an error saying the texture is too large. That said, I can't get anything to draw on the screen except for some .swf vectors. All of the other textures are black as well. Here's the debugger log:
ArgumentError: Error #3683: Texture too big (max is 2048x2048).
at flash.display3D::Context3D/createTexture()
at com.genome2d.textures::GContextTexture/invalidateNativeTexture()
at com.genome2d.textures::GTexture/invalidateNativeTexture()
at com.genome2d.textures::GTexture()
at com.genome2d.textures.factories::GTextureFactory$/createFromBitmapData()
at flixel.system.render::FlxTexture/uploadBitmapDataToGPU()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/Library/flixel2.57/flixel/system/render/FlxTexture.as:44]
at flixel.system.render::FlxTexture/setBitmapData()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/Library/flixel2.57/flixel/system/render/FlxTexture.as:163]
at flixel::FlxSprite/resetHelpers()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/Library/flixel2.57/flixel/FlxSprite.as:474]
at flixel::FlxSprite/loadGraphic()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/Library/flixel2.57/flixel/FlxSprite.as:334]
at Player/makePlayer()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/aeonRivals_dev/src/Player.as:1123]
at PlayState/loginGuest()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/aeonRivals_dev/src/PlayState.as:2147]
at flixel.ui::FlxButton/handleMouseUp()[/Users/PRIZZA/Documents/Adobe Flash Builder 4.7/Library/flixel2.57/flixel/ui/FlxButton.as:356]