aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/ext_packed_depth_stencil/readpixels-24_8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/ext_packed_depth_stencil/readpixels-24_8.c')
-rw-r--r--tests/spec/ext_packed_depth_stencil/readpixels-24_8.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/spec/ext_packed_depth_stencil/readpixels-24_8.c b/tests/spec/ext_packed_depth_stencil/readpixels-24_8.c
index ae0063b1..e7c90be7 100644
--- a/tests/spec/ext_packed_depth_stencil/readpixels-24_8.c
+++ b/tests/spec/ext_packed_depth_stencil/readpixels-24_8.c
@@ -33,10 +33,13 @@
#define BUF_WIDTH 15
#define BUF_HEIGHT 15
-PIGLIT_GL_TEST_MAIN(
- BUF_WIDTH /*window_width*/,
- BUF_WIDTH /*window_height*/,
- PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_ALPHA)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = BUF_WIDTH;
+ config.window_height = BUF_WIDTH;
+ config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_ALPHA;
+
+PIGLIT_GL_TEST_CONFIG_END
/* Width of our stripes of z = 0.0, 0.5, 1.0 */
static int w = BUF_WIDTH / 3;