aboutsummaryrefslogtreecommitdiff
path: root/tests/general/triangle-rasterization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/triangle-rasterization.cpp')
-rw-r--r--tests/general/triangle-rasterization.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/general/triangle-rasterization.cpp b/tests/general/triangle-rasterization.cpp
index 313214c2..0df75c72 100644
--- a/tests/general/triangle-rasterization.cpp
+++ b/tests/general/triangle-rasterization.cpp
@@ -99,10 +99,13 @@ int fbo_height = 256;
/* Piglit variables */
-PIGLIT_GL_TEST_MAIN(
- fbo_width /*window_width*/,
- fbo_height /*window_height*/,
- PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_ALPHA | PIGLIT_GL_VISUAL_DOUBLE)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = fbo_width;
+ config.window_height = fbo_height;
+ config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_ALPHA | PIGLIT_GL_VISUAL_DOUBLE;
+
+PIGLIT_GL_TEST_CONFIG_END
/* Globals */
int test_id = 0;