summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-07-07 16:25:47 -0700
committerEric Anholt <eric@anholt.net>2011-07-10 19:41:53 -0700
commit58499fc48b52faf90b55c5e9913218f9aae3598e (patch)
treea8148d8125091f93c21d103440c763a770e850db
parent534d85330a4ccac9801b83ff1bfedbd2bd9ff050 (diff)
fp-lit-src-equals-dst: Convert to readback before glutSwapBuffers().
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--tests/shaders/fp-lit-src-equals-dst.c6
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 11d495d79..e59b3b326 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;
}