glTexImage2D gives 'invalid value' error,
Members - Reputation: 142
Posted 08 October 2001 - 12:00 AM
Members - Reputation: 123
Posted 08 October 2001 - 01:06 AM
the problem is you are passing a rectangular ( not square )
image, all opengl textures need to be to the power of 2 and
square ( although i believe there are extensions to support
rectangular textures ).
The reason why it works with gluBuild2DMipmaps is that
this scales the image so it is square ( from what I can
gather from the red book ).
Hope it helps