Images drawn with the glDrawPixels method only come our right half of the time =/
Create 45x45 px image -> load it -> glDrawPixels -> image is ok
Change one color in photoshop -> resave -> glDrawPixels -> half of the image is grey
Most of the tiny images drawn using glDrawPixels seem to break like that (half becomes grey or whatever), larger images around 100x100 always come out ok.
What am I doing wrong OpenGL wizards, what is it about glDrawPixels I am missing?
Go look up the source code for glDrawPixels and don't come back until you figure out what's wrong.
Name:
Anonymous2011-10-07 18:16
what format are you using to store the image? most likely your decoder is up to shits, and/or photoshop cant into correct output.
Name:
Sadimir2011-10-08 11:50
A 4 channel raw. The reader is fine. Large images always work, small ones work sometimes... SOMETIMES!!!
Perhaps using it sets an internal state or something that I'm supposed to clear or something =/