summaryrefslogtreecommitdiff
path: root/tests/texturing/depth-tex-modes.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texturing/depth-tex-modes.c')
-rw-r--r--tests/texturing/depth-tex-modes.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/texturing/depth-tex-modes.c b/tests/texturing/depth-tex-modes.c
index 951a4f43c..993a0c467 100644
--- a/tests/texturing/depth-tex-modes.c
+++ b/tests/texturing/depth-tex-modes.c
@@ -39,10 +39,13 @@ static const GLenum depth_texture_modes[] = {
#define TEST_ROWS 4
#define TEST_COLS ARRAY_SIZE(depth_texture_modes)
-PIGLIT_GL_TEST_MAIN(
- 1 + (TEST_COLS * (BOX_SIZE + 1)) /*window_width*/,
- 1 + (TEST_ROWS * (BOX_SIZE + 1)) /*window_height*/,
- PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB)
+PIGLIT_GL_TEST_CONFIG_BEGIN
+
+ config.window_width = 1+(TEST_COLS*(BOX_SIZE+1));
+ config.window_height = 1+(TEST_ROWS*(BOX_SIZE+1));
+ config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB;
+
+PIGLIT_GL_TEST_CONFIG_END
GLuint tex[2];