diff options
author | Adam Jackson <ajax@redhat.com> | 2011-03-02 13:37:43 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-03-28 12:46:38 -0400 |
commit | ed6c13c01e017f9f40c89247ab6652895fb1ea14 (patch) | |
tree | 05a732b6a1d75841686536af11a07b3c16c384f6 | |
parent | 17d9e374721d6c8ee3f7f9cdc882f80127bdb57f (diff) |
glx: Update some glapi comments
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | glx/glapi.c | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/glx/glapi.c b/glx/glapi.c index 79ff6b11f..873344bb6 100644 --- a/glx/glapi.c +++ b/glx/glapi.c @@ -22,47 +22,21 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ - /* - * This file manages the OpenGL API dispatch layer. - * The dispatch table (struct _glapi_table) is basically just a list - * of function pointers. - * There are functions to set/get the current dispatch table for the - * current thread and to manage registration/dispatch of dynamically - * added extension functions. - * - * It's intended that this file and the other glapi*.[ch] files are - * flexible enough to be reused in several places: XFree86, DRI- - * based libGL.so, and perhaps the SGI SI. - * - * NOTE: There are no dependencies on Mesa in this code. + * This file manages the OpenGL API dispatch layer. There are functions + * to set/get the current dispatch table for the current thread and to + * manage registration/dispatch of dynamically added extension functions. * - * Versions (API changes): - * 2000/02/23 - original version for Mesa 3.3 and XFree86 4.0 - * 2001/01/16 - added dispatch override feature for Mesa 3.5 - * 2002/06/28 - added _glapi_set_warning_func(), Mesa 4.1. - * 2002/10/01 - _glapi_get_proc_address() will now generate new entrypoints - * itself (using offset ~0). _glapi_add_entrypoint() can be - * called afterward and it'll fill in the correct dispatch - * offset. This allows DRI libGL to avoid probing for DRI - * drivers! No changes to the public glapi interface. + * This code was originally general enough to be shared with Mesa, but + * they diverged long ago, so this is now just enough support to make + * indirect GLX work. */ - - -#ifdef HAVE_DIX_CONFIG_H - #include <dix-config.h> #include <X11/Xfuncproto.h> #include <os.h> #define PUBLIC _X_EXPORT -#else - -#include "glheader.h" - -#endif - #include <stdlib.h> #include <string.h> #ifdef DEBUG |