From 66d336808d3eb01eab42fb311b932bfe9f7c6b1c Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 2 Apr 2007 10:03:34 -0600 Subject: Call _glapi_set_context(NULL) in _glapi_check_multithread() to make sure the _glapi_Context global gets cleared properly. --- src/mesa/glapi/glapi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 348f12b3e7..5815dbff84 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -240,6 +240,7 @@ _glapi_check_multithread(void) else if (knownID != _glthread_GetID()) { ThreadSafe = GL_TRUE; _glapi_set_dispatch(NULL); + _glapi_set_context(NULL); } } else if (!_glapi_get_dispatch()) { -- cgit v1.2.3