summaryrefslogtreecommitdiff
path: root/tests/general/infinite-spot-light.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/infinite-spot-light.c')
-rw-r--r--tests/general/infinite-spot-light.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/general/infinite-spot-light.c b/tests/general/infinite-spot-light.c
index f2855d5b1..a7d28c15a 100644
--- a/tests/general/infinite-spot-light.c
+++ b/tests/general/infinite-spot-light.c
@@ -41,10 +41,13 @@
#include "piglit-util-gl-common.h"
-PIGLIT_GL_TEST_MAIN(
- 100 /*window_width*/,
- 100 /*window_height*/,
- PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = 100;
+ config.window_height = 100;
+ config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
+
+PIGLIT_GL_TEST_CONFIG_END
/* Already normalized, and 0.5 would be the expected color */
static GLfloat dir[3] = {0.866025404, 0.0, 0.5};