aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/apple/apple_glx.c
diff options
context:
space:
mode:
authorJeremy Huddleston <[email protected]>2011-06-07 18:51:17 -0700
committerJeremy Huddleston <[email protected]>2011-06-07 23:06:35 -0700
commit7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4 (patch)
tree8d817992ed293025b7ad1b7f85f09acd98db9f6c /src/glx/apple/apple_glx.c
parent88cec591706ff63870c9c2a04394034b6f761f9c (diff)
apple: Use glapi rather than reinventing the wheel
With this change, Apple's libGL is now using glapi rather than implementing its own dispatch. In this implementation, two dispatch tables are created: __ogl_framework_api always points into OpenGL.framework. __applegl_api is the vtable that is used. It points into OpenGL.framework or to local implementations that override / interpose this in OpenGL.framework The initialization for __ogl_framework_api was copied from XQuartz with some modifications and probably still needs further edits to better deal with aliases. This is a good step towards supporting both indirect and direct rendering on darwin. Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src/glx/apple/apple_glx.c')
-rw-r--r--src/glx/apple/apple_glx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glx/apple/apple_glx.c b/src/glx/apple/apple_glx.c
index d9bc0917156..e8f94407ea4 100644
--- a/src/glx/apple/apple_glx.c
+++ b/src/glx/apple/apple_glx.c
@@ -37,7 +37,6 @@
#include "apple_glx.h"
#include "apple_glx_context.h"
#include "apple_cgl.h"
-#include "apple_xgl_api.h"
static bool initialized = false;
static int dri_event_base = 0;