I'm trying to display a 640x480 image using glDrawPixels. On Solaris it displays correctly, on a Linux box with an NVidia Riva TNT2 it doesn't show up at all. However, I've discoverd that if I alter the glRasterPos2i command from glRasterPos2i(0,480)
to glRasterPos2i(0,479) then the image appears but shifted one row of pixels down. Why won't it show up when I just use the 480, and why does this only happen on my linux box?
Thanks for any help.
Here's the code:
glPixelZoom(1,-1); glDrawPixels(scene->xRes,scene->yRes,GL_RGBA,GL_UNSIGNED_INT_8_8_8_8,image_pixels );