Mesa (master): darwin: Use clientattrib

Brian Paul brianp at kemper.freedesktop.org
Wed Apr 28 13:21:35 UTC 2010


Module: Mesa
Branch: master
Commit: 163901bc7f89dc3a5c65d66b960f18dd561631c1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=163901bc7f89dc3a5c65d66b960f18dd561631c1

Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Fri Apr  2 00:54:57 2010 -0700

darwin: Use clientattrib

Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

---

 src/glx/apple/Makefile |    2 +-
 src/glx/clientattrib.c |    2 ++
 src/glx/glxcmds.c      |    2 --
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile
index 4c05013..a3ee888 100644
--- a/src/glx/apple/Makefile
+++ b/src/glx/apple/Makefile
@@ -20,7 +20,7 @@ BUILD_DIR=builds
 
 all: $(BUILD_DIR)/libGL.1.2.dylib
 
-OBJECTS=glxext.o glxcmds.o glx_pbuffer.o glx_query.o glxcurrent.o glxextensions.o \
+OBJECTS=clientattrib.o glxext.o glxcmds.o glx_pbuffer.o glx_query.o glxcurrent.o glxextensions.o \
     appledri.o apple_glx_context.o apple_glx.o pixel.o \
     compsize.o apple_visual.o apple_cgl.o glxreply.o glcontextmodes.o \
     apple_xgl_api.o apple_glx_drawable.o xfont.o apple_glx_pbuffer.o \
diff --git a/src/glx/clientattrib.c b/src/glx/clientattrib.c
index a7dfb53..b26c179 100644
--- a/src/glx/clientattrib.c
+++ b/src/glx/clientattrib.c
@@ -35,6 +35,7 @@
 
 /*****************************************************************************/
 
+#ifndef GLX_USE_APPLEGL
 static void
 do_enable_disable(GLenum array, GLboolean val)
 {
@@ -123,6 +124,7 @@ __indirect_glPopClientAttrib(void)
       return;
    }
 }
+#endif
 
 void
 __glFreeAttributeState(__GLXcontext * gc)
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index e9ec4c8..e74ae34 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -539,9 +539,7 @@ __glXFreeContext(__GLXcontext * gc)
       XFree((char *) gc->version);
    if (gc->extensions)
       XFree((char *) gc->extensions);
-#ifndef GLX_USE_APPLEGL /* TODO: clientattrib */
    __glFreeAttributeState(gc);
-#endif
    XFree((char *) gc->buf);
    Xfree((char *) gc->client_state_private);
    XFree((char *) gc);




More information about the mesa-commit mailing list