[Mesa-dev] [PATCH] glx: use correct table offset for glAreTexturesResidentEXT
Emil Velikov
emil.l.velikov at gmail.com
Fri Jul 21 14:57:54 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
The correct offset is 322 as opposed to 332.
Broken since the rework of GET_DISPATCH back in ~2012.
Cc: mesa-stable at lists.freedesktop.org
Cc: Ian Romanick <ian.d.romanick at intel.com>
Fixes 99fee476a102 ("glx: Don't use glapitable.h at all")
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
I'm looking if we can purge most of this code in favour of the generated
one ... in indirect.c (yes, that file has both direct and indirect bits)
src/glx/single2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/single2.c b/src/glx/single2.c
index 2a1bf06bc0a..42ff8bccc45 100644
--- a/src/glx/single2.c
+++ b/src/glx/single2.c
@@ -917,7 +917,7 @@ glAreTexturesResidentEXT(GLsizei n, const GLuint * textures,
if (gc->isDirect) {
const _glapi_proc *const table = (_glapi_proc *) GET_DISPATCH();
PFNGLARETEXTURESRESIDENTEXTPROC p =
- (PFNGLARETEXTURESRESIDENTEXTPROC) table[332];
+ (PFNGLARETEXTURESRESIDENTEXTPROC) table[322];
return p(n, textures, residences);
}
--
2.13.0
More information about the mesa-dev
mailing list