projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71cc1e1
)
glx/glvnd: Don't modify the dummy slot in the dispatch table
author
Adam Jackson
<ajax@redhat.com>
Wed, 14 Sep 2016 17:56:50 +0000
(13:56 -0400)
committer
Adam Jackson
<ajax@redhat.com>
Wed, 2 Nov 2016 18:52:31 +0000
(14:52 -0400)
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/glx/glxglvnd.c
patch
|
blob
|
history
diff --git
a/src/glx/glxglvnd.c
b/src/glx/glxglvnd.c
index 098304d5574909746af915e6edde4b01e7fdc8b5..2fc9b0080f878bea29c83cd9a497a1b3c3c1b347 100644
(file)
--- 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;
}