View Full Version : detect if drivers support non-power-of-two texture
10-12-2009, 03:56 AM
how can i query whether my drivers support non-power-of-two textures?
10-12-2009, 05: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, 11:39 AM
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.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.