From: Emil Velikov <[email protected]>

The correct offset is 322 as opposed to 332.
Broken since the rework of GET_DISPATCH back in ~2012.

Cc: [email protected]
Cc: Ian Romanick <[email protected]>
Fixes 99fee476a102 ("glx: Don't use glapitable.h at all")
Signed-off-by: Emil Velikov <[email protected]>
---
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

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to