On Mon, 2009-03-30 at 02:55 +0100, Dave Airlie wrote: > 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.
Yeah, I also recently made one test do read of back before swap after running into the DRI2 problem. It's a lot nicer anyway imo since that means that nothing else on the screen can interfere with the results. Well, unless you're doing DRI1, but then you get what you deserve. -- Eric Anholt [email protected] [email protected]
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------
_______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
