diff options
author | Alexandros Frantzis <alexandros.frantzis@linaro.org> | 2011-12-01 15:59:23 +0200 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-12-01 19:54:56 +0000 |
commit | 641493c219b52d39d68b1125b6ff5201ce861ffa (patch) | |
tree | 17522d063ed0176f1b87d35dc07ffe135e9cec95 | |
parent | 486708bd2e7f15e0a69d29a7fa34f0a3d8105eaf (diff) |
Don't call GLX functions when compiling the EGL retracer.
This is a temporary fix, until we implement a dedicated EGL-based,
GL/GLES1/GLES2 state dumping mechanism.
-rw-r--r-- | glstate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glstate.cpp b/glstate.cpp index 6b9c072..329276f 100644 --- a/glstate.cpp +++ b/glstate.cpp @@ -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 |