I have an app which runs fine on most devices except if I install it on a Google Nexus 10. It fails at startup with the old Error #3683 Texture too big.
I understand this is because a texture is too large but:
a/All my textures atlases are less than 2048x2048
b/the app runs on all the other devices I have tried
c/The app fails before Starling displays my first screen (only the splash image is visible)
So I am assuming that something to do with the high resolution of the Nexus 10 (2560x1600 @300 ppi) fails the bit of viewport setup code below by generating a viewport that is too big or something when it calls the RectangleUtil.fit() method? I am using the viewport setup code from the Starling scaffold.
var viewPort:Rectangle = RectangleUtil.fit(new Rectangle(0, 0, stageWidth, stageHeight), new Rectangle(0, 0, stage.fullScreenWidth, stage.fullScreenHeight), ScaleMode.SHOW_ALL);
Perhaps the RectangleUtil.fit() method requires a max size of 2048? Somewhere in here perhaps?
width *= factor;
height *= factor;
//Use Math.max to limit max width/height here????
Anybody able to elaborate?