#include <stdint.h>
#endif
#include "GL/glxproto.h"
-#include "glapi/glapitable.h"
#include "glxconfig.h"
#include "glxhash.h"
#if defined( PTHREADS )
#include "glxextensions.h"
#include "indirect.h"
#include "indirect_vertex_array.h"
-#include "glapitable.h"
#include "glapi.h"
#ifdef USE_XCB
#include <xcb/xcb.h>
struct glx_context *const gc = __glXGetCurrentContext();
if (gc->isDirect) {
- return GET_DISPATCH()->AreTexturesResident(n, textures, residences);
+ const _glapi_proc *const table = (_glapi_proc *) GET_DISPATCH();
+ PFNGLARETEXTURESRESIDENTEXTPROC p =
+ (PFNGLARETEXTURESRESIDENTEXTPROC) table[332];
+
+ return p(n, textures, residences);
}
else {
struct glx_context *const gc = __glXGetCurrentContext();
#include "packsingle.h"
#include "indirect.h"
-#include "glapitable.h"
#include "glapi.h"
#include "glthread.h"
#include <GL/glxproto.h>
#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
print ''
print '#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)'
print ' if (gc->isDirect) {'
- print ' %sGET_DISPATCH()->%s(%s);' % (ret_string, func.name, func.get_called_parameter_string())
+ print ' const _glapi_proc *const table = GET_DISPATCH();'
+ print ' PFNGL%sPROC p =' % (name.upper())
+ print ' (PFNGL%sPROC) table[%d];' % (name.upper(), func.offset)
+ print ' %sp(%s);' % (ret_string, func.get_called_parameter_string())
print ' } else'
print '#endif'
print ' {'