glx/glvnd: Don't modify the dummy slot in the dispatch table
authorAdam Jackson <ajax@redhat.com>
Wed, 14 Sep 2016 17:56:50 +0000 (13:56 -0400)
committerAdam Jackson <ajax@redhat.com>
Wed, 2 Nov 2016 18:52:31 +0000 (14:52 -0400)
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/glx/glxglvnd.c

index 098304d5574909746af915e6edde4b01e7fdc8b5..2fc9b0080f878bea29c83cd9a497a1b3c3c1b347 100644 (file)
@@ -50,6 +50,9 @@ static void __glXGLVNDSetDispatchIndex(const GLubyte *procName, int index)
 {
     unsigned internalIndex = FindGLXFunction(procName);
 
+    if (internalIndex == DI_FUNCTION_COUNT)
+        return; /* unknown or static dispatch */
+
     __glXDispatchTableIndices[internalIndex] = index;
 }