[Piglit] [PATCH] piglit-util.c : fix compilation issues with GLES2

Tapani Pälli tapani.palli at intel.com
Tue May 24 05:07:39 PDT 2011


GL_GEOMETRY_SHADER is only defined if USE_OPENGL is defined
and GL/glext.h is included (not defined in GLES2/gl2ext.h).
---
 tests/util/piglit-util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index b39cc42..28096b8 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -308,8 +308,10 @@ shader_name(GLenum target)
    switch (target) {
    case GL_VERTEX_SHADER:
       return "vertex";
+#if defined USE_OPENGL
    case GL_GEOMETRY_SHADER:
       return "geometry";
+#endif
    case GL_FRAGMENT_SHADER:
       return "fragment";
    default:
-- 
1.7.5.1

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the Piglit mailing list