[Xquartz-changes] [322] AppleSGLX/trunk/apple_glx.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 20 17:36:03 PDT 2009
Revision: 322
http://trac.macosforge.org/projects/xquartz/changeset/322
Author: gstaplin at apple.com
Date: 2009-03-20 17:36:03 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
Reorder some code so that each display connection gets initialized.
Modified Paths:
--------------
AppleSGLX/trunk/apple_glx.c
Modified: AppleSGLX/trunk/apple_glx.c
===================================================================
--- AppleSGLX/trunk/apple_glx.c 2009-03-20 22:37:15 UTC (rev 321)
+++ AppleSGLX/trunk/apple_glx.c 2009-03-21 00:36:03 UTC (rev 322)
@@ -112,6 +112,12 @@
int eventBase, errorBase;
int major, minor, patch;
+ if(!XAppleDRIQueryExtension(dpy, &eventBase, &errorBase))
+ return true;
+
+ if(!XAppleDRIQueryVersion(dpy, &major, &minor, &patch))
+ return true;
+
if(initialized)
return false;
@@ -125,14 +131,9 @@
libgl_handle = dlopen(OPENGL_LIB_PATH, RTLD_LAZY);
(void)apple_glx_get_client_id();
- if(!XAppleDRIQueryExtension(dpy, &eventBase, &errorBase))
- return true;
-
- if(!XAppleDRIQueryVersion(dpy, &major, &minor, &patch))
- return true;
-
XAppleDRISetSurfaceNotifyHandler(surface_notify_handler);
+ /* This should really be per display. */
dri_event_base = eventBase;
initialized = true;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090320/b70d73f7/attachment.html>
More information about the Xquartz-changes
mailing list