]> git.cworth.org Git - apitrace/commitdiff
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 6b9c0723d0dcc8b2a18044bf6c071b9a805dd67a..329276ffdf0b38e9ba8e91fcb9a36241b80c91c8 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