[Xquartz-changes] [183] AppleSGLX/trunk/glxcmds.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Feb 19 18:15:57 PST 2009
Revision: 183
http://trac.macosforge.org/projects/xquartz/changeset/183
Author: gstaplin at apple.com
Date: 2009-02-19 18:15:56 -0800 (Thu, 19 Feb 2009)
Log Message:
-----------
Clean up some unused code that was #if 0ed out in glxcmds.c.
Use the name modes consistently for the __GLcontextModes.
Modified Paths:
--------------
AppleSGLX/trunk/glxcmds.c
Modified: AppleSGLX/trunk/glxcmds.c
===================================================================
--- AppleSGLX/trunk/glxcmds.c 2009-02-20 02:13:54 UTC (rev 182)
+++ AppleSGLX/trunk/glxcmds.c 2009-02-20 02:15:56 UTC (rev 183)
@@ -684,38 +684,14 @@
{
int screen = vis->screen;
__GLXscreenConfigs *const psc = GetGLXScreenConfigs(dpy, screen);
- const __GLcontextModes *mode;
+ const __GLcontextModes *modes;
- mode = _gl_context_modes_find_visual(psc->visuals, vis->visualid);
+ modes = _gl_context_modes_find_visual(psc->visuals, vis->visualid);
- if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, mode))
+ if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, modes))
return None;
return pixmap;
-
-#if 0
- xGLXCreateGLXPixmapReq *req;
- GLXPixmap xid;
- CARD8 opcode;
-
- opcode = __glXSetupForCommand(dpy);
- if (!opcode) {
- return None;
- }
-
- /* Send the glXCreateGLXPixmap request */
- LockDisplay(dpy);
- GetReq(GLXCreateGLXPixmap,req);
- req->reqType = opcode;
- req->glxCode = X_GLXCreateGLXPixmap;
- req->screen = vis->screen;
- req->visual = vis->visualid;
- req->pixmap = pixmap;
- req->glxpixmap = xid = XAllocID(dpy);
- UnlockDisplay(dpy);
- SyncHandle();
- return xid;
-#endif
}
/*
@@ -724,25 +700,6 @@
PUBLIC void glXDestroyGLXPixmap(Display *dpy, GLXPixmap glxpixmap)
{
apple_glx_pixmap_destroy(dpy, glxpixmap);
-
-#if 0
- xGLXDestroyGLXPixmapReq *req;
- CARD8 opcode;
-
- opcode = __glXSetupForCommand(dpy);
- if (!opcode) {
- return;
- }
-
- /* Send the glXDestroyGLXPixmap request */
- LockDisplay(dpy);
- GetReq(GLXDestroyGLXPixmap,req);
- req->reqType = opcode;
- req->glxCode = X_GLXDestroyGLXPixmap;
- req->glxpixmap = glxpixmap;
- UnlockDisplay(dpy);
- SyncHandle();
-#endif
}
PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable drawable) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090219/5fd234c8/attachment.html>
More information about the Xquartz-changes
mailing list