aboutsummaryrefslogtreecommitdiff
path: root/tests/fbo/fbo-readpixels.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fbo/fbo-readpixels.c')
-rw-r--r--tests/fbo/fbo-readpixels.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/fbo/fbo-readpixels.c b/tests/fbo/fbo-readpixels.c
index cc646d9c..81eab7f1 100644
--- a/tests/fbo/fbo-readpixels.c
+++ b/tests/fbo/fbo-readpixels.c
@@ -36,10 +36,13 @@
#define BUF_WIDTH 32
#define BUF_HEIGHT 32
-PIGLIT_GL_TEST_MAIN(
- 100 /*window_width*/,
- 200 /*window_height*/,
- PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = 100;
+ config.window_height = 200;
+ config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB;
+
+PIGLIT_GL_TEST_CONFIG_END
static GLboolean
test_with_format(GLenum internal_format, GLenum format,