From 15e7655425bd1b14824fba91015c4bc6c1b8b359 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Sat, 22 Sep 2012 16:04:35 +0200 Subject: util,tests: Replace GLUT visual enums with PIGLTI_GL_VISUAL enums (v2) I'm trying to transition Piglit from using GLUT to using Waffle. That requires either killing or wrapping all GLUT code. Define enum piglit_gl_visual in piglit-framework.h, of which each value matches its corresponding GLUT visual enum. Do the following substitution in all util and test sources: GLUT_RGB -> PIGLIT_GL_VISUAL_RGB GLUT_RGBA -> PIGLIT_GL_VISUAL_RGBA GLUT_DOUBLE -> PIGLIT_GL_VISUAL_DOUBLE GLUT_ACCUM -> PIGLIT_GL_VISUAL_ACCUM GLUT_ALPHA -> PIGLIT_GL_VISUAL_ALPHA GLUT_DEPTH -> PIGLIT_GL_VISUAL_DEPTH GLUT_STENCIL -> PIGLIT_GL_VISUAL_STENCIL v2: Remove GLUT_INDEX, for Ken. Reviewed-and-tested-by: Jordan Justen Reviewed-by: Kenneth Graunke Tested-by: Paul Berry Acked-by: Eric Anholt Signed-off-by: Chad Versace --- tests/general/user-clip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/general/user-clip.c') diff --git a/tests/general/user-clip.c b/tests/general/user-clip.c index 553fdd9a..0828690a 100644 --- a/tests/general/user-clip.c +++ b/tests/general/user-clip.c @@ -35,7 +35,7 @@ PIGLIT_GL_TEST_MAIN( 100 /*window_width*/, 100 /*window_height*/, - GLUT_DOUBLE) + PIGLIT_GL_VISUAL_DOUBLE) static const GLfloat clear_color[4] = { 0.5, 0.5, 0.5, 1.0 }; -- cgit v1.2.3