Mesa (master): mapi: fix preprocessor check in u_current_destroy()
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 5 14:19:32 UTC 2015
Module: Mesa
Branch: master
Commit: 6b5eb7bce6ac5351b0c96252a1c8738f51834e1d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b5eb7bce6ac5351b0c96252a1c8738f51834e1d
Author: Brian Paul <brianp at vmware.com>
Date: Wed Mar 4 19:17:57 2015 -0700
mapi: fix preprocessor check in u_current_destroy()
So it matches the preprocessor check around the u_current_init_tsd() code.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: José Fonseca <jfonseca at vmware.com>
---
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
More information about the mesa-commit
mailing list