[Xquartz-changes] [182] AppleSGLX/trunk/glx_pbuffer.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Feb 19 18:13:54 PST 2009
Revision: 182
http://trac.macosforge.org/projects/xquartz/changeset/182
Author: gstaplin at apple.com
Date: 2009-02-19 18:13:54 -0800 (Thu, 19 Feb 2009)
Log Message:
-----------
Add support for glXCreatePixmap and glXDestroyPixmap.
These are the GLXFBConfig variety of GLXPixmaps.
Modified Paths:
--------------
AppleSGLX/trunk/glx_pbuffer.c
Modified: AppleSGLX/trunk/glx_pbuffer.c
===================================================================
--- AppleSGLX/trunk/glx_pbuffer.c 2009-02-20 00:09:01 UTC (rev 181)
+++ AppleSGLX/trunk/glx_pbuffer.c 2009-02-20 02:13:54 UTC (rev 182)
@@ -724,7 +724,11 @@
{
unsigned int value;
- /*This is a no-op with Apple CGL pbuffers.*/
+ *mask = 0;
+ /*
+ * This is a no-op with Apple CGL pbuffers.
+ * We could perhaps match the glXSelectEvent input.
+ */
return;
/* The non-sense with value is required because on LP64 platforms
@@ -741,9 +745,12 @@
glXCreatePixmap( Display *dpy, GLXFBConfig config, Pixmap pixmap,
const int *attrib_list )
{
- return CreateDrawable( dpy, (__GLcontextModes *) config,
- (Drawable) pixmap, attrib_list,
- X_GLXCreatePixmap );
+ const __GLcontextModes *modes = (const __GLcontextModes *)config;
+
+ if(apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes))
+ return None;
+
+ return pixmap;
}
@@ -760,7 +767,7 @@
PUBLIC void
glXDestroyPixmap(Display *dpy, GLXPixmap pixmap)
{
- DestroyDrawable( dpy, (GLXDrawable) pixmap, X_GLXDestroyPixmap );
+ apple_glx_pixmap_destroy(dpy, pixmap);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090219/3b7c8020/attachment-0001.html>
More information about the Xquartz-changes
mailing list