summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-09-14 13:56:50 -0400
committerEmil Velikov <emil.l.velikov@gmail.com>2016-11-09 13:47:50 +0000
commitc08a62a0b1b481e1c0bf02228ef03442bf1b0031 (patch)
tree3427af9978ac18820b81f8039a2283b8f60c28bf /src/glx
parent81df3f63cb581f28caf3286100774ab96b34cff0 (diff)
downloadexternal_mesa3d-c08a62a0b1b481e1c0bf02228ef03442bf1b0031.zip
external_mesa3d-c08a62a0b1b481e1c0bf02228ef03442bf1b0031.tar.gz
external_mesa3d-c08a62a0b1b481e1c0bf02228ef03442bf1b0031.tar.bz2
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 deb0eb1660f612862c77d225582e102e7ab717ee)
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 098304d..2fc9b00 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;
}