diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2002-05-01 14:53:52 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2002-05-01 14:53:52 +0000 |
commit | d63730d08747fefbb44e12baf93ef2ac2cd9e935 (patch) | |
tree | 419b06a0666ca2e8194624ce8db3480ae44d9acb | |
parent | 2469fc9672f8d6ddd729b1e9807c38b1efc373fe (diff) |
glutSwapBuffers implicitly does a glFinish when swapping back to the front
buffer. We now issue a glFinish when not issuing SwapBuffers to ensure
the pipeline is complete.
(Problem found with Chromium).
-rw-r--r-- | progs/demos/readpix.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c index 238ef2ee1f..0d26aefdc7 100644 --- a/progs/demos/readpix.c +++ b/progs/demos/readpix.c @@ -1,4 +1,4 @@ -/* $Id: readpix.c,v 1.4 2000/10/16 21:24:39 brianp Exp $ */ +/* $Id: readpix.c,v 1.4.2.1 2002/05/01 14:53:52 alanh Exp $ */ /* * glReadPixels and glCopyPixels test @@ -8,6 +8,13 @@ /* * $Log: readpix.c,v $ + * Revision 1.4.2.1 2002/05/01 14:53:52 alanh + * glutSwapBuffers implicitly does a glFinish when swapping back to the front + * buffer. We now issue a glFinish when not issuing SwapBuffers to ensure + * the pipeline is complete. + * + * (Problem found with Chromium). + * * Revision 1.4 2000/10/16 21:24:39 brianp * use gray background, memset TempImage to white to help with debugging * @@ -173,6 +180,8 @@ Display( void ) if (!DrawFront) glutSwapBuffers(); + else + glFinish(); } |