summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/libgl-xlib/xlib.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-10-25 22:05:20 +0800
committerChia-I Wu <[email protected]>2010-10-27 10:06:25 +0800
commitb5022ad03584f119b27c143b53e7ed80e8c12ffb (patch)
tree3adbb6dc219119ec1ac2e4d64cac89c78302f79e /src/gallium/targets/libgl-xlib/xlib.c
parent9b3c4d3e67db9d43fc6b12d2b4943b087c80c926 (diff)
glapi: Do not use glapidispatch.h.
glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
Diffstat (limited to 'src/gallium/targets/libgl-xlib/xlib.c')
-rw-r--r--src/gallium/targets/libgl-xlib/xlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/targets/libgl-xlib/xlib.c b/src/gallium/targets/libgl-xlib/xlib.c
index 2f8cd2d404a..6f05714f9e0 100644
--- a/src/gallium/targets/libgl-xlib/xlib.c
+++ b/src/gallium/targets/libgl-xlib/xlib.c
@@ -195,7 +195,6 @@ extern void (*linker_foo(const unsigned char *procName))()
#include "GL/gl.h"
#include "glapi/glapi.h"
#include "glapi/glapitable.h"
-#include "glapi/glapidispatch.h"
#if defined(USE_MGL_NAMESPACE)
#define NAME(func) mgl##func
@@ -204,10 +203,10 @@ extern void (*linker_foo(const unsigned char *procName))()
#endif
#define DISPATCH(FUNC, ARGS, MESSAGE) \
- CALL_ ## FUNC(GET_DISPATCH(), ARGS);
+ GET_DISPATCH()->FUNC ARGS
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
- return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
+ return GET_DISPATCH()->FUNC ARGS
/* skip normal ones */
#define _GLAPI_SKIP_NORMAL_ENTRY_POINTS