summaryrefslogtreecommitdiffstats
path: root/src/glx/single2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/single2.c')
-rw-r--r--src/glx/single2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glx/single2.c b/src/glx/single2.c
index 259c4fec1ff..d422d9dcf1a 100644
--- a/src/glx/single2.c
+++ b/src/glx/single2.c
@@ -35,7 +35,6 @@
#include "glxextensions.h"
#include "indirect.h"
#include "indirect_vertex_array.h"
-#include "glapitable.h"
#include "glapi.h"
#ifdef USE_XCB
#include <xcb/xcb.h>
@@ -943,7 +942,11 @@ glAreTexturesResidentEXT(GLsizei n, const GLuint * textures,
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();