diff options
author | Chia-I Wu <[email protected]> | 2009-10-25 23:24:18 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-11-05 20:03:56 -0700 |
commit | 7870298086cfdde020437e23ba86abb61741129e (patch) | |
tree | dccb462c84abbd18390d2d38fb3ee03a2dff89c2 /src/mesa/main | |
parent | d971069fc6f5dcec64b1f1a60a8a2e7063aaf018 (diff) |
glapi: Allow normal entry points to be skipped.
Reorganize glapitemp.h such that it is possible to skip normal entry
points or protocol entry points by defining
_GLAPI_SKIP_NORMAL_ENTRY_POINTS or _GLAPI_SKIP_PROTO_ENTRY_POINTS.
Protocol entry points are those with different GLX protocols. They are
skipped in libglapi.a when GLX_INDIRECT_RENDERING is defined.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/dispatch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c index 97d213e8e1f..cd5410514d0 100644 --- a/src/mesa/main/dispatch.c +++ b/src/mesa/main/dispatch.c @@ -89,6 +89,10 @@ #define GLAPIENTRY #endif +#ifdef GLX_INDIRECT_RENDERING +/* those link to libglapi.a should provide the entry points */ +#define _GLAPI_SKIP_PROTO_ENTRY_POINTS +#endif #include "glapi/glapitemp.h" #endif /* USE_X86_ASM */ |