apple: Purge existing (not working) GLX_USE_APPLEGL from dated libGL on OSX
authorJeremy Huddleston <jeremyhu@freedesktop.org>
Thu, 24 Dec 2009 16:47:29 +0000 (08:47 -0800)
committerJeremy Huddleston <jeremyhu@freedesktop.org>
Sun, 3 Jan 2010 13:58:13 +0000 (08:58 -0500)
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
src/glx/x11/dri_glx.c
src/glx/x11/glxcurrent.c
src/mesa/main/dispatch.c

index 4f7acb6cc32958890af720f95a2c9282f24ca497..88487b6c96290ca865a16c9db3b3e385b54a5740 100644 (file)
@@ -280,8 +280,6 @@ static const __DRIextension *loader_extensions[] = {
    NULL
 };
 
-#ifndef GLX_USE_APPLEGL
-
 /**
  * Perform the required libGL-side initialization and call the client-side
  * driver's \c __driCreateNewScreen function.
@@ -475,17 +473,6 @@ CallCreateNewScreen(Display * dpy, int scrn, __GLXscreenConfigs * psc,
    return NULL;
 }
 
-#else /* !GLX_USE_APPLEGL */
-
-static void *
-CallCreateNewScreen(Display * dpy, int scrn, __GLXscreenConfigs * psc,
-                    __GLXDRIdisplayPrivate * driDpy)
-{
-   return NULL;
-}
-
-#endif /* !GLX_USE_APPLEGL */
-
 static void
 driDestroyContext(__GLXDRIcontext * context,
                   __GLXscreenConfigs * psc, Display * dpy)
index f1e3e161bec6efd69e51aaa85c80f63335ae76a4..fae1bd9fa629434e69f15266f3279af3f7731a9d 100644 (file)
@@ -475,13 +475,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
                IndirectAPI = __glXNewIndirectAPI();
             _glapi_set_dispatch(IndirectAPI);
 
-#ifdef GLX_USE_APPLEGL
-            do {
-               extern void XAppleDRIUseIndirectDispatch(void);
-               XAppleDRIUseIndirectDispatch();
-            } while (0);
-#endif
-
             state = (__GLXattribute *) (gc->client_state_private);
 
             gc->currentContextTag = reply.contextTag;
index 97d213e8e1f5756ee6b57661cfa522ecfc3843d3..eb0d1ff8a7b44fcaad6a9b156bb7db59f9a8f795 100644 (file)
@@ -37,8 +37,6 @@
  * \author Brian Paul <brian@precisioninsight.com>
  */
 
-#ifndef GLX_USE_APPLEGL
-
 #include "main/glheader.h"
 #include "main/compiler.h"
 #include "glapi/glapi.h"
@@ -92,5 +90,3 @@
 #include "glapi/glapitemp.h"
 
 #endif /* USE_X86_ASM */
-
-#endif /* !GLX_USE_APPLEGL */