[PATCH 2/7] glamor: glObjectLabel is not defined in GLES2

Maarten Lankhorst maarten.lankhorst at ubuntu.com
Mon Jan 12 06:29:32 PST 2015


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at ubuntu.com>
---
 glamor/glamor_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c
index 737b274..4eaf8ac 100644
--- a/glamor/glamor_core.c
+++ b/glamor/glamor_core.c
@@ -102,7 +102,8 @@ glamor_link_glsl_prog(ScreenPtr screen, GLint prog, const char *format, ...)
         FatalError("GLSL link failure\n");
     }
 
-    if (glamor_priv->has_khr_debug) {
+    if (glamor_priv->has_khr_debug &&
+        (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)) {
         char *label;
         va_list va;
 
-- 
2.2.1



More information about the xorg-devel mailing list