[Piglit] [PATCH 06/16] util/shader: Remove the last #ifdef PIGLIT_USE_OPENGL guard

Chad Versace chad.versace at linux.intel.com
Wed Jul 9 14:56:48 PDT 2014


This patch removes the last #ifdef PIGLIT_USE_OPENGL guard in
piglit-shader-.c.  Now that piglit-dispatch supports every OpenGL API,
this file no longer needs to provide separate implementations for GL and
GLES.

This patch brings us one step closer to unifying Piglit's CMake files.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/util/piglit-shader.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c
index 38e5182..1f20a8e 100644
--- a/tests/util/piglit-shader.c
+++ b/tests/util/piglit-shader.c
@@ -101,14 +101,12 @@ shader_name(GLenum target)
    switch (target) {
    case GL_VERTEX_SHADER:
       return "vertex";
-#if defined PIGLIT_USE_OPENGL
    case GL_TESS_CONTROL_SHADER:
       return "tessellation control";
    case GL_TESS_EVALUATION_SHADER:
       return "tessellation evaluation";
    case GL_GEOMETRY_SHADER:
       return "geometry";
-#endif
    case GL_FRAGMENT_SHADER:
       return "fragment";
    default:
-- 
2.0.0



More information about the Piglit mailing list