Re: [PyOpenGL-Users] Textures on Bad Hardware
Brought to you by:
mcfletch
From: Almar K. <alm...@gm...> - 2010-09-17 09:01:22
|
On 17 September 2010 00:26, Greg Ewing <gre...@ca...> wrote: > Almar Klein wrote: > > Well, what *should* work 100% is checking the opengl > > version (with glGetString(GL_VERSION)). > > No, this won't work 100%. It's better to test for the presence > of a specific extension, in this case "ARB_texture_non_power_of_two". > Testing only the version *does* make sure that the system supports non-power-of two textures. By testing also for the extension, you could detect that the system supports non-power-of-two, even if the version is smaller than 2.0. The latter is obviously a nicer solution, indeed. Almar |