Don't call GLX functions when compiling the EGL retracer.
authorAlexandros Frantzis <alexandros.frantzis@linaro.org>
Thu, 1 Dec 2011 13:59:23 +0000 (15:59 +0200)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 1 Dec 2011 19:54:56 +0000 (19:54 +0000)
This is a temporary fix, until we implement a dedicated EGL-based,
GL/GLES1/GLES2 state dumping mechanism.

glstate.cpp

index 6b9c072..329276f 100644 (file)
@@ -738,6 +738,7 @@ getDrawableBounds(GLint *width, GLint *height) {
 
 #else
 
+#if !TRACE_EGL
     Display *display;
     Drawable drawable;
     Window root;
@@ -760,6 +761,9 @@ getDrawableBounds(GLint *width, GLint *height) {
 
     *width = w;
     *height = h;
+#else
+    return false;
+#endif
 
 #endif