Revision: 308 http://trac.macosforge.org/projects/xquartz/changeset/308 Author: gstaplin@apple.com Date: 2009-03-12 21:29:11 -0700 (Thu, 12 Mar 2009) Log Message: ----------- Add a bit more of a diagnostic to the glXMakeCurrent path. This will help with debugging in the future I suspect. Modified Paths: -------------- AppleSGLX/trunk/glxcurrent.c Modified: AppleSGLX/trunk/glxcurrent.c =================================================================== --- AppleSGLX/trunk/glxcurrent.c 2009-03-13 01:23:55 UTC (rev 307) +++ AppleSGLX/trunk/glxcurrent.c 2009-03-13 04:29:11 UTC (rev 308) @@ -36,7 +36,7 @@ #include <stdlib.h> #include <pthread.h> #include "glxclient.h" - +#include "apple_glx.h" #include "apple_glx_context.h" /* @@ -136,12 +136,17 @@ Bool pre13) { const GLXContext oldGC = __glXGetCurrentContext(); - - if(apple_glx_make_current_context(dpy, - (oldGC && oldGC != &dummyContext) ? - oldGC->apple : NULL, - gc ? gc->apple : NULL, - draw)) + bool error; + + error = apple_glx_make_current_context(dpy, + (oldGC && oldGC != &dummyContext) ? + oldGC->apple : NULL, + gc ? gc->apple : NULL, + draw); + + apple_glx_diagnostic("%s: error %s\n", __func__, error ? "YES" : "NO"); + + if(error) return GL_FALSE; __glXLock();