For the past two days Ive been struggling with texture issues in opengl where the textures just come up as white boxes on certain devices and on everything else they show up fine. Ive double checked and used only POT (power of two) images and that did not resolve the problem. From what I read Im thinking that android is doing something to the bitmaps on these certain devices that is knocking them out of dimension and then causing the textures to come up blank or white.
These images that I am using are not stored within the apk although I have tried to use images stored in the local resources and it doesnt seem to make a difference whether their stored locally or Im using images streamed to the device in the form of a stream. My only other guess is that I need to do something to keep certain builds of android from resizing the images but I dont know how to do this.
For bitmaps stored as resources with your apk, you can prevent the system from scaling them by putting them in folder
res/drawable-nodpi. For images created from a stream, the system normally assumes that they are intended for a medium density (160dpi) display and will scale accordingly. You can prevent this through various api calls as described here.The recommended approach is to provide separate graphics resources for each screen resolution supported. The basic technique is described here.