diff options
author | Adam Jackson <[email protected]> | 2016-09-14 13:56:50 -0400 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2016-11-02 14:52:31 -0400 |
commit | deb0eb1660f612862c77d225582e102e7ab717ee (patch) | |
tree | 983db68feac1fd1bc2dbc605393e45d8958c067a | |
parent | 71cc1e188d52bebe86a1ac72fe90f4e2a7e76778 (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.c | 3 |
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; } |