diff options
Diffstat (limited to 'tests/texturing/depth-level-clamp.c')
-rw-r--r-- | tests/texturing/depth-level-clamp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/texturing/depth-level-clamp.c b/tests/texturing/depth-level-clamp.c index 8add593c..0f05049c 100644 --- a/tests/texturing/depth-level-clamp.c +++ b/tests/texturing/depth-level-clamp.c @@ -41,10 +41,13 @@ #define MAX_LOD 6 #define PAD 5 -PIGLIT_GL_TEST_MAIN( - (MAX_SIZE * 2 + PAD * 3) /*window_width*/, - (MAX_SIZE * MAX_LOD + PAD * (MAX_LOD + 1)) /*window_height*/, - PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB) +PIGLIT_GL_TEST_CONFIG_BEGIN + + config.window_width = (MAX_SIZE*2+PAD*3); + config.window_height = (MAX_SIZE*MAX_LOD+PAD*(MAX_LOD+1)); + config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB; + +PIGLIT_GL_TEST_CONFIG_END static void set_level_value(int level, int size, float val) |