[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: opengl and textures



xarvh@lombardiacom.it wrote:
It works, but with a different texture, loaded in the same way.
Does the problem texture have the right constraints for an
OpenGL texture?  i.e. does it have power-of-two widths and
heights (ie. 16x64) and other card-specific constraints?
(Many older cards limit textures to max 256x256, some
also choke on anything more than a 1:8 aspect ratio, etc.)

You can check whether these parameters are correct for a
particular OpenGL implementation by using a proxy texture
(target GL_PROXY_TEXTURE_2D) with glTexImage2D (see the
man page).

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
Consume Less, Live More