glDrawPixels Problem

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

try
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);

(it’s 4 by default)

Michael