diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-08-02 19:16:06 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-08-02 19:21:21 +0200 |
commit | b3700c39940f103b960548a82aca80c48fa4499b (patch) | |
tree | f979901848f3609e1959e11abb86d6844ba836fc /tests | |
parent | 15133f5221a335899ca8537fc57c967da05f1189 (diff) |
fp-lit-mask: read the back buffer instead of front
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shaders/fp-lit-mask.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/shaders/fp-lit-mask.c b/tests/shaders/fp-lit-mask.c index 05ce85da..224833a0 100644 --- a/tests/shaders/fp-lit-mask.c +++ b/tests/shaders/fp-lit-mask.c @@ -64,8 +64,6 @@ static void DoFrame(void) glPopMatrix(); } - - glutSwapBuffers(); } static int DoTest( void ) @@ -73,7 +71,6 @@ static int DoTest( void ) int mask; GLfloat dmax; - glReadBuffer( GL_FRONT ); dmax = 0; for(mask = 1; mask < 16; ++mask) { @@ -115,6 +112,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); + glutSwapBuffers(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } |