Hey,

Just wondering what should be done, but gen-teximage.c and 
gen-texsubimage.c at lesat both do

glutSwapBuffers
glFlush
glReadPixels.

Now glReadPixels defaults to reading from the backbuffer, and in theory 
after a swapbuffers the contents of the backbuffer are undefined.

I'm sure the fix is to glReadPixels before the swapbuffers or 
glReadBuffer(GL_FRONT) before it.

Since DRI2 + Front buffer rendering is hosed the second option isn't so 
pretty.

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG


------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to