Fix T100956: Cycles GPU context assert after recent changes

We don't need to be on the main thread to destroy the context.
This commit is contained in:
2022-09-12 19:00:07 +02:00
parent 54571003dc
commit 9951464571

View File

@@ -1276,8 +1276,6 @@ void RE_engine_gpu_context_destroy(RenderEngine *engine)
return;
}
BLI_assert(BLI_thread_is_main());
const bool drw_state = DRW_opengl_context_release();
WM_opengl_context_activate(engine->gpu_context);