summaryrefslogtreecommitdiff
path: root/tests/texturing/depth-tex-modes-rg.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-06-11 21:14:42 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-06-20 16:49:34 -0700
commit29bbf12760b537a2a3b30d18ed22f88c6c89f7f7 (patch)
tree5643fc32eb96b09f98b2955335a4b07e7bc51183 /tests/texturing/depth-tex-modes-rg.c
parent7b90e1b18fd694014d453139ecdbbb31c7625999 (diff)
tests: Let each test define main()
Each test that did not define main() now does so using PIGLIT_GL_TEST_MAIN(). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/texturing/depth-tex-modes-rg.c')
-rw-r--r--tests/texturing/depth-tex-modes-rg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/texturing/depth-tex-modes-rg.c b/tests/texturing/depth-tex-modes-rg.c
index 048749505..fff21b6be 100644
--- a/tests/texturing/depth-tex-modes-rg.c
+++ b/tests/texturing/depth-tex-modes-rg.c
@@ -40,9 +40,10 @@ static const GLenum depth_texture_modes[] = {
#define TEST_ROWS 4
#define TEST_COLS ARRAY_SIZE(depth_texture_modes)
-int piglit_window_mode = GLUT_DOUBLE | GLUT_RGB;
-int piglit_width = 1 + (TEST_COLS * (BOX_SIZE + 1));
-int piglit_height = 1 + (TEST_ROWS * (BOX_SIZE + 1));
+PIGLIT_GL_TEST_MAIN(
+ 1 + (TEST_COLS * (BOX_SIZE + 1)) /*window_width*/,
+ 1 + (TEST_ROWS * (BOX_SIZE + 1)) /*window_height*/,
+ GLUT_DOUBLE | GLUT_RGB)
GLuint tex[2];