summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-08-02 19:14:15 +0200
committerMarek Olšák <maraeo@gmail.com>2011-08-02 19:21:21 +0200
commit15133f5221a335899ca8537fc57c967da05f1189 (patch)
tree0a2f100fd193ac9f1e6218b922006fed12f00e83 /tests
parent8100e93191b61d55a0cc29325f7552b6073b94b1 (diff)
fp-kil: read the back buffer instead of front
so that it doesn't randomly fail on non-composited environments.
Diffstat (limited to 'tests')
-rw-r--r--tests/shaders/fp-kil.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/shaders/fp-kil.c b/tests/shaders/fp-kil.c
index ef0a7c82..3999d19b 100644
--- a/tests/shaders/fp-kil.c
+++ b/tests/shaders/fp-kil.c
@@ -82,8 +82,6 @@ static void DoFrame(void)
glTexCoord2f(0, 1);
glVertex2f(0, 2);
glEnd();
-
- glutSwapBuffers();
}
static const struct {
@@ -208,7 +206,6 @@ static int DoTest( void )
int idx;
GLfloat dmax;
- glReadBuffer( GL_FRONT );
dmax = 0;
idx = 0;
@@ -254,6 +251,7 @@ piglit_display(void)
DoFrame();
pass = DoTest();
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}