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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev