[Mesa-dev] [PATCH 2/7] mapi: fix preprocessor check in u_current_destroy()

Brian Paul brianp at vmware.com
Wed Mar 4 18:19:26 PST 2015


So it matches the preprocessor check around the u_current_init_tsd() code.
---
 src/mapi/u_current.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapi/u_current.c b/src/mapi/u_current.c
index afa887e..eb77cc7 100644
--- a/src/mapi/u_current.c
+++ b/src/mapi/u_current.c
@@ -125,7 +125,7 @@ static int ThreadSafe;
 void
 u_current_destroy(void)
 {
-#if defined(THREADS) && defined(_WIN32)
+#if defined(THREADS) && !defined(GLX_USE_TLS)
    u_tsd_destroy(&u_current_table_tsd);
    u_tsd_destroy(&u_current_context_tsd);
 #endif
-- 
1.9.1



More information about the mesa-dev mailing list