[Xquartz-changes] [145] AppleSGLX/trunk/glxcmds.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 16 14:43:53 PST 2009


Revision: 145
          http://trac.macosforge.org/projects/xquartz/changeset/145
Author:   gstaplin at apple.com
Date:     2009-02-16 14:43:52 -0800 (Mon, 16 Feb 2009)
Log Message:
-----------
Add support to glxcmds.c for GLXPixmaps.

Modified Paths:
--------------
    AppleSGLX/trunk/glxcmds.c

Modified: AppleSGLX/trunk/glxcmds.c
===================================================================
--- AppleSGLX/trunk/glxcmds.c	2009-02-16 22:40:20 UTC (rev 144)
+++ AppleSGLX/trunk/glxcmds.c	2009-02-16 22:43:52 UTC (rev 145)
@@ -682,6 +682,12 @@
 PUBLIC GLXPixmap glXCreateGLXPixmap(Display *dpy, XVisualInfo *vis, 
 				    Pixmap pixmap)
 {
+    if(apple_glx_pixmap_create(dpy, vis->screen, pixmap))
+	return None;
+
+    return pixmap;
+
+#if 0
     xGLXCreateGLXPixmapReq *req;
     GLXPixmap xid;
     CARD8 opcode;
@@ -703,6 +709,7 @@
     UnlockDisplay(dpy);
     SyncHandle();
     return xid;
+#endif
 }
 
 /*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090216/49f1661d/attachment-0001.html>


More information about the Xquartz-changes mailing list