aboutsummaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-lod-bias.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shaders/glsl-lod-bias.c')
-rw-r--r--tests/shaders/glsl-lod-bias.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/shaders/glsl-lod-bias.c b/tests/shaders/glsl-lod-bias.c
index a34d6de6..52449405 100644
--- a/tests/shaders/glsl-lod-bias.c
+++ b/tests/shaders/glsl-lod-bias.c
@@ -39,10 +39,13 @@
#define TEST_COLS 5
#define BOX_SIZE (1 << (TEST_COLS + 1))
-PIGLIT_GL_TEST_MAIN(
- (BOX_SIZE + 2) * TEST_COLS + 1 /*window_width*/,
- (BOX_SIZE + 1) + 1 /*window_height*/,
- PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = (BOX_SIZE+2)*TEST_COLS+1;
+ config.window_height = (BOX_SIZE+1)+1;
+ config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
+
+PIGLIT_GL_TEST_CONFIG_END
static GLuint tex[1];
static GLint prog;