   Non-Power of Two Textures
  I've been developing my graphics engine for some time, and just recently had to move my development onto a crappy PC with an Intel integrated graphics card.I'd not factored in the whole NPOT issue because I just assumed that most modern graphics cards could support NPOT.However, the Intel can't. I'm trying to find a simple way to detect whether the graphics card supports NPOT so I can plan accordingly.I've got GLEW as well in case that makes things easier, something like GLEW_IS_NPOT_SUPPORTED would be awesome.Can anyone point me in the right direction?   
  Hi,You could use gluBuild2DMipmaps in place of glTexImage2D for example, for it will resize your npot textures to the closest power of 2 and build mipmaps accordingly.. Hope it helps, regards :)   ;  Hi, thanks for your input.I'm reluctant to use gluBuild2DMipmaps as I'm planning on handling mipmapping myself and also because a number of people have expressed concerned with the function on this forum before.   ;  For obvious quality reasons, you shouldn't use gluBuild2DMipmaps, but you already knew that.About NPOT support, well, it's supposed to be core from OpenGL 2.0 onwards. Testing for this version would be a first step. GLEW probably has a function for that. If not, you'll need to parse the GL_VERSION string yourself.If the version is lower than 2.0, there's still a chance that NPOT may be supported, although support may be incomplete (see early Radeon cards). Checking for the presence of the ARB_texture_non_power_of_two extension will tell you that. Again, GLEW should expose some mechanism to check for the presence of that extension manually. If not, you'll need to parse the GL_EXTENSIONS string.;  glewIsSupported("GL_ARB_non_power_of_two") could tell you this.   ;  Hi guys, Thanks for the answers.I tried glewIsSupported("GL_ARB_non_power_of_two") but it always returned false, even on a high-end machine with an nVidia GTX280 (I think it was).I shall have to keep hunting, I'm sure I'll find an answer.Thanks all, and enjoy the weather.;  It's misspelled, the correct one is GL_ARB_texture_non_power_of_two   ;  Note that simply checking for the extension is not enough. Some drivers will not expose the extension anymore on GL >= 2.0, as its support is implied.;  Yea, I thought about that as well.I'm guessing in the end there's no sure fire way of detecting this?   ;  glewIsSupported("GL_ARB_texture_non_power_of_two") || GL >= 2.0But if the drivers lie, there's no way of knowing that :)   