[Xquartz-changes] [263] AppleSGLX/trunk/gen_exports.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Thu Feb 26 07:04:55 PST 2009
Revision: 263
http://trac.macosforge.org/projects/xquartz/changeset/263
Author: gstaplin at apple.com
Date: 2009-02-26 07:04:50 -0800 (Thu, 26 Feb 2009)
Log Message:
-----------
Update gen_exports.tcl to include some SGIX stubs.
This should allow building more Mesa apps (more easily at least), but
the extension won't be listed by glXQueryExtensionsString.
See also: the long comment in gen_exports.tcl.
Modified Paths:
--------------
AppleSGLX/trunk/gen_exports.tcl
Modified: AppleSGLX/trunk/gen_exports.tcl
===================================================================
--- AppleSGLX/trunk/gen_exports.tcl 2009-02-26 07:49:45 UTC (rev 262)
+++ AppleSGLX/trunk/gen_exports.tcl 2009-02-26 15:04:50 UTC (rev 263)
@@ -89,6 +89,30 @@
glXDestroyGLXPbufferSGIX glXSelectEventSGIX \
glXGetSelectedEventSGIX
+ #These are for GLX_SGIX_fbconfig, which isn't implemented, because
+ #we have the GLX 1.3 GLXFBConfig functions which are in the standard spec.
+ #It should be possible to support these to some extent.
+ #The old libGL somewhat supported the GLXFBConfigSGIX code, but lacked
+ #pbuffer, and pixmap support.
+ #We mainly just need these stubs for linking with apps, because for
+ #some reason the OpenGL site suggests using the latest glxext.h,
+ #and glxext.h defines all GLX extensions, which doesn't seem right for
+ #compile-time capability detection.
+ #See also: http://www.mesa3d.org/brianp/sig97/exten.htm#Compile
+ #which conflicts with: the ABI registry from what I saw on opengl.org.
+ #By disabling some of the #defines in glxext.h we break some software,
+ #and by enabling them without the symbols we break others (in Mesa).
+ #I think a lot of OpenGL-based programs have issues one way or another.
+ #It seems that even Mesa developers are confused on this issue, because
+ #Mesa-7.3/progs/xdemos/glxgears_fbconfig.c has comments about breakage
+ #in some comments.
+ lappend glxlist glXGetFBConfigAttribSGIX \
+ glXChooseFBConfigSGIX \
+ glXGetVisualFromFBConfigSGIX \
+ glXCreateGLXPixmapWithConfigSGIX \
+ glXCreateContextWithConfigSGIX \
+ glXGetFBConfigFromVisualSGIX
+
set fd [open [lindex $argv 1] w]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090226/d538c421/attachment-0001.html>
More information about the Xquartz-changes
mailing list