On Tue, Sep 14, 2010 at 1:59 PM, Almar Klein <almar.klein@gmail.com> wrote:
The pretties way of doing this is checking the openGl version and if its < 2.0, you need power-of-two textures. However, I recently encountered a system with an ATI card, that did have OpenGl >=2.0, but did NOT support non-power-of-two textures. So my current implementation just tries resizing the texture if it fails to initialize, or if OpenGl <2.0.
I've simply added a global flag to my library that automatically resizes all textures to a power of two (either automatically up, or to the nearest level), and then made a note to favor power-of-two textures.  It's pretty lame that Intel does this. 

I don't suppose there's a more useful error that could be thrown here--does the GL return something helpful in this regard?