glx/glvnd: Don't modify the dummy slot in the dispatch table

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit deb0eb1660)
This commit is contained in:
Adam Jackson 2016-09-14 13:56:50 -04:00 committed by Emil Velikov
parent 9baee818b6
commit b1bced0d1f

View 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;
}