From: Alexandros Frantzis Date: Thu, 1 Dec 2011 13:59:23 +0000 (+0200) Subject: Don't call GLX functions when compiling the EGL retracer. X-Git-Tag: 2.0_alpha^2~435^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=641493c219b52d39d68b1125b6ff5201ce861ffa;p=tools%2Fapitrace.git 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. --- 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