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>
This commit is contained in:
parent
17d9e37472
commit
ed6c13c01e
38
glx/glapi.c
38
glx/glapi.c
|
@ -22,47 +22,21 @@
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file manages the OpenGL API dispatch layer.
|
* This file manages the OpenGL API dispatch layer. There are functions
|
||||||
* The dispatch table (struct _glapi_table) is basically just a list
|
* to set/get the current dispatch table for the current thread and to
|
||||||
* of function pointers.
|
* manage registration/dispatch of dynamically added extension functions.
|
||||||
* 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
|
* This code was originally general enough to be shared with Mesa, but
|
||||||
* flexible enough to be reused in several places: XFree86, DRI-
|
* they diverged long ago, so this is now just enough support to make
|
||||||
* based libGL.so, and perhaps the SGI SI.
|
* indirect GLX work.
|
||||||
*
|
|
||||||
* NOTE: There are no dependencies on Mesa in this code.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
#include <os.h>
|
#include <os.h>
|
||||||
#define PUBLIC _X_EXPORT
|
#define PUBLIC _X_EXPORT
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "glheader.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user