Mesa (12.0): glx/glvnd: Don't modify the dummy slot in the dispatch table
Emil Velikov
evelikov at kemper.freedesktop.org
Fri Dec 2 19:58:34 UTC 2016
Module: Mesa
Branch: 12.0
Commit: b1bced0d1f8fb27cd04f69e0ccd994ebec08d034
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1bced0d1f8fb27cd04f69e0ccd994ebec08d034
Author: Adam Jackson <ajax at redhat.com>
Date: Wed Sep 14 13:56:50 2016 -0400
glx/glvnd: Don't modify the dummy slot in the dispatch table
Cc: "13.0" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Signed-off-by: Adam Jackson <ajax at redhat.com>
(cherry picked from commit deb0eb1660f612862c77d225582e102e7ab717ee)
---
src/glx/glxglvnd.c | 3 +++
1 file changed, 3 insertions(+)
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;
}
More information about the mesa-commit
mailing list