mesa: Branch 'master'

Brian Paul brianp at kemper.freedesktop.org
Mon Apr 2 16:03:40 UTC 2007


 src/mesa/glapi/glapi.c |    1 +
 1 files changed, 1 insertion(+)

New commits:
diff-tree 66d336808d3eb01eab42fb311b932bfe9f7c6b1c (from dccd9c4f4d3eb4fd31002eb13e32ea78a5d0905c)
Author: Brian <brian at yutani.localnet.net>
Date:   Mon Apr 2 10:03:34 2007 -0600

    Call _glapi_set_context(NULL) in _glapi_check_multithread() to make sure the _glapi_Context global gets cleared properly.

diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 348f12b..5815dbf 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()) {



More information about the mesa-commit mailing list