aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-01-16 23:19:19 -0800
committerBrian Paul <[email protected]>2010-01-19 08:59:37 -0700
commite88294328cb71dc32941556da5bd4ed40e8b95f1 (patch)
tree2491cbde360e8b22bc40c459adf69202fdeedef7 /src/glx
parent7a39a5c1cb5087a1b8247f9bed59bf9374717cb3 (diff)
glx: Set GL context to null in __glXSetCurrentContextNull
__glXSetCurrentContextNull currently does not set the GL context to null in the direct rendering case. This can result in a segfault trying to flush an invalid old context in glXMakeCurrent. This fixes a crash starting the Unigine demos (they still don't work due to missing extensions though). Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/x11/glxcurrent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/glxcurrent.c b/src/glx/x11/glxcurrent.c
index fae1bd9fa62..50de7d612b8 100644
--- a/src/glx/x11/glxcurrent.c
+++ b/src/glx/x11/glxcurrent.c
@@ -162,6 +162,7 @@ __glXSetCurrentContextNull(void)
__glXSetCurrentContext(&dummyContext);
#ifdef GLX_DIRECT_RENDERING
_glapi_set_dispatch(NULL); /* no-op functions */
+ _glapi_set_context(NULL);
#endif
}