Debugging glPixelStorei

Posts: 215
Joined: 2008.06
Post: #1
I have identified an error in my texture loading code that generates a GL_INVALID_VALUE error at the glPixelStorei call. Can anyone suggest what is going on and any possible solutions to fix this? Also, is there any possibility that this could be causing problems elsewhere in my code?

For extra info, the texture I load with it seems to work perfectly well, until I try loading a new texture. After I load the new texture, it corrupts the original texture AND the new texture.

Mac users swear by their computers, PC users swear at their computers. ~Unknown

Quote this message in a reply
Posts: 1,562
Joined: 2003.10
Post: #2
Check the glPixelStore man page to ensure that you're using the API as documented.
Quote this message in a reply
Post Reply