summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-09-14 13:56:50 -0400
committerAdam Jackson <ajax@redhat.com>2016-11-02 14:52:31 -0400
commitdeb0eb1660f612862c77d225582e102e7ab717ee (patch)
tree983db68feac1fd1bc2dbc605393e45d8958c067a /src/glx
parent71cc1e188d52bebe86a1ac72fe90f4e2a7e76778 (diff)
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>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxglvnd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/glxglvnd.c b/src/glx/glxglvnd.c
index 098304d5574..2fc9b0080f8 100644
--- a/src/glx/glxglvnd.c
+++ b/src/glx/glxglvnd.c
@@ -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;
}