diff options
Diffstat (limited to 'tests/shaders/glsl-max-varyings.c')
-rw-r--r-- | tests/shaders/glsl-max-varyings.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/shaders/glsl-max-varyings.c b/tests/shaders/glsl-max-varyings.c index 934c66c8c..2ef19f6b9 100644 --- a/tests/shaders/glsl-max-varyings.c +++ b/tests/shaders/glsl-max-varyings.c @@ -37,10 +37,13 @@ /* 10x10 rectangles with 2 pixels of pad. Deal with up to 32 varyings. */ -PIGLIT_GL_TEST_MAIN( - (2 + MAX_VARYING * 12) /*window_width*/, - (2 + MAX_VARYING * 12) /*window_height*/, - PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE) +PIGLIT_GL_TEST_CONFIG_BEGIN + + config.window_width = (2+MAX_VARYING*12); + config.window_height = (2+MAX_VARYING*12); + config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; + +PIGLIT_GL_TEST_CONFIG_END /* Generate a VS that writes to num_varyings vec4s, and put * interesting data in data_varying with 0.0 everywhere else. |