Module: Mesa Branch: master Commit: 7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4
Author: Jeremy Huddleston <jerem...@apple.com> Date: Tue Jun 7 18:51:17 2011 -0700 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 <jerem...@apple.com> --- src/glx/apple/.gitignore | 1 - src/glx/apple/Makefile | 28 +- src/glx/apple/apple_glapi.c | 1005 ++++++++++++++++++++ src/glx/apple/apple_glx.c | 1 - src/glx/apple/apple_glx.h | 2 + ...{apple_xgl_api_additional.c => apple_xgl_api.h} | 29 +- src/glx/apple/apple_xgl_api_read.c | 17 +- src/glx/apple/apple_xgl_api_stereo.c | 24 +- src/glx/apple/apple_xgl_api_viewport.c | 9 +- src/glx/apple/gen_api_library.tcl | 2 +- 10 files changed, 1065 insertions(+), 53 deletions(-) Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4 _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit