From deb0eb1660f612862c77d225582e102e7ab717ee Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 14 Sep 2016 13:56:50 -0400 Subject: [PATCH] glx/glvnd: Don't modify the dummy slot in the dispatch table Cc: "13.0" Reviewed-by: Eric Engestrom Signed-off-by: Adam Jackson --- src/glx/glxglvnd.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.30.2