LWJGL Forum

Programming => OpenGL => Topic started by: padam1989 on October 09, 2009, 15:29:48

Title: size of a texture ?????
Post by: padam1989 on October 09, 2009, 15:29:48
Hola Everyone.

I know that opengl renders the texture having pixel size power of 2. I want to know is there any way or trick to map the texture whose size is not power of 2 ???.

Gracias.
Title: Re: size of a texture ?????
Post by: Rene on October 09, 2009, 15:57:05
Non power of two textures are supported from GL version 2.0 on. On older versions it might be available as an extension:

GL_ARB_texture_non_power_of_two
Title: Re: size of a texture ?????
Post by: Evil-Devil on October 10, 2009, 21:54:28
You should try to avoid using non power of two texture.