diff options
author | Ian Romanick <[email protected]> | 2012-07-31 16:58:41 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-08 10:06:26 -0700 |
commit | 99fee476a102be898a1a093c037e06382f90a5b9 (patch) | |
tree | 80a730afe812f5324804a1b3884483cade03771e /src/glx/singlepix.c | |
parent | f5dffb7e36487ff8a012725aaf78a4b7d3169102 (diff) |
glx: Don't use glapitable.h at all
When --enable-shared-glapi is used, all non-ABI entries in the table are
lies. Avoiding the use of glapitable.h avoids the lies. The only
entries used in this code are entries that are ABI. For these, the ABI
offset can be used directly.
Since this code is in src/glx, it can't use src/mesa/main/dispatch.h to
get the pretty names for these offsets.
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/singlepix.c')
-rw-r--r-- | src/glx/singlepix.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/glx/singlepix.c b/src/glx/singlepix.c index d8a71664d05..3c06f8d2150 100644 --- a/src/glx/singlepix.c +++ b/src/glx/singlepix.c @@ -30,7 +30,6 @@ #include "packsingle.h" #include "indirect.h" -#include "glapitable.h" #include "glapi.h" #include "glthread.h" #include <GL/glxproto.h> @@ -117,8 +116,11 @@ void gl_dispatch_stub_GetSeparableFilterEXT (GLenum target, GLenum format, #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) if (gc->isDirect) { - GET_DISPATCH()->GetSeparableFilter(target, format, type, - row, column, span); + const _glapi_proc *const table = (_glapi_proc *) GET_DISPATCH(); + PFNGLGETSEPARABLEFILTEREXTPROC p = + (PFNGLGETSEPARABLEFILTEREXTPROC) table[359]; + + p(target, format, type, row, column, span); return; } else |