PDA

View Full Version : glDrawPixels Problem



mop
01-09-2003, 06:30 AM
Hi,

I'm used glDrawPixels to display a background.

So if the image has an even width, the image is fully display.
But if the image has an odd width, the first line has not complete.

example:
image like 1280x921 ==> OK
image like 1281x922 ==> NOK

Could you explain me why I have this problem ?

Thanks a lot

Philippe

wimmer
01-09-2003, 06:27 PM
try
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);

(it's 4 by default)

Michael