[Mesa-dev] [PATCH] mesa: stop glthread on exit
Bartosz Tomczyk
bartosz.tomczyk86 at gmail.com
Thu May 4 15:16:13 UTC 2017
It fixes occasional crashes when app exits
and glthread is still processing commands.
---
src/mesa/main/context.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 3570f94f5a..c3c4095329 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -354,6 +354,9 @@ mtx_t OneTimeLock = _MTX_INITIALIZER_NP;
static void
one_time_fini(void)
{
+ GET_CURRENT_CONTEXT(ctx);
+ if (ctx)
+ _mesa_glthread_destroy(ctx);
_mesa_destroy_shader_compiler();
_mesa_locale_fini();
}
--
2.12.2
More information about the mesa-dev
mailing list