From 641493c219b52d39d68b1125b6ff5201ce861ffa Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Thu, 1 Dec 2011 15:59:23 +0200 Subject: [PATCH] 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. --- glstate.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.7.4