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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user