View Full Version : detect if drivers support non-power-of-two texture
10-12-2009, 04:56 AM
how can i query whether my drivers support non-power-of-two textures?
10-12-2009, 06:56 AM
In GL 2.0 it's a core feature. So if you detect a 2.0 compatible driver you'll have it. Otherwise check if the GL_ARB_texture_non_power_of_two extension is supported.
10-12-2009, 12:39 PM
To get the list of extensions supported by your hardware and OpenGL version call glGetString (http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml).
You can also look for GL_ARB_texture_rectangle which allow to load NPOT textures but in a more limited way: no mipmaps, no normalized texture coordinates, some wrapping modes unsupported, etc...
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.