[Mesa-dev] [PATCH 2/3] fp-lit-src-equals-dst: Convert to readback before glutSwapBuffers().

Eric Anholt eric at anholt.net
Thu Jul 7 17:14:47 PDT 2011


---
 tests/shaders/fp-lit-src-equals-dst.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/shaders/fp-lit-src-equals-dst.c b/tests/shaders/fp-lit-src-equals-dst.c
index 11d495d..e59b3b3 100644
--- a/tests/shaders/fp-lit-src-equals-dst.c
+++ b/tests/shaders/fp-lit-src-equals-dst.c
@@ -71,8 +71,6 @@ static void DoFrame(void)
 
 		glPopMatrix();
 	}
-
-	glutSwapBuffers();
 }
 
 static bool
@@ -81,8 +79,6 @@ DoTest(void)
 	int mask;
  	bool pass = true;
 
-	glReadBuffer( GL_FRONT );
-
 	for(mask = 1; mask < 16; ++mask) {
 		float expected[4];
 		int i;
@@ -110,6 +106,8 @@ piglit_display(void)
 	DoFrame();
 	pass = DoTest();
 
+	glutSwapBuffers();
+
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
 }
 
-- 
1.7.5.4



More information about the mesa-dev mailing list