summaryrefslogtreecommitdiff
path: root/tests/texturing/rg-teximage-01.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texturing/rg-teximage-01.c')
-rw-r--r--tests/texturing/rg-teximage-01.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/texturing/rg-teximage-01.c b/tests/texturing/rg-teximage-01.c
index 173f58a8e..6a5635bdb 100644
--- a/tests/texturing/rg-teximage-01.c
+++ b/tests/texturing/rg-teximage-01.c
@@ -50,10 +50,13 @@ GLuint tex[Elements(internal_formats)];
const unsigned num_tex = Elements(tex);
GLboolean pass = GL_TRUE;
-PIGLIT_GL_TEST_MAIN(
- WIDTH * Elements(tex) /*window_width*/,
- HEIGHT /*window_height*/,
- PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = WIDTH*Elements(tex);
+ config.window_height = HEIGHT;
+ config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
+
+PIGLIT_GL_TEST_CONFIG_END
void
piglit_init(int argc, char **argv)