summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2016-09-14 13:56:50 -0400
committerAdam Jackson <[email protected]>2016-11-02 14:52:31 -0400
commitdeb0eb1660f612862c77d225582e102e7ab717ee (patch)
tree983db68feac1fd1bc2dbc605393e45d8958c067a
parent71cc1e188d52bebe86a1ac72fe90f4e2a7e76778 (diff)
glx/glvnd: Don't modify the dummy slot in the dispatch table
Cc: "13.0" <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Signed-off-by: Adam Jackson <[email protected]>
-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;
}