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:
parent
54571003dc
commit
9951464571
Notes:
blender-bot
2023-02-21 17:59:30 +01:00
Referenced by issue #100956, Regression: BLI_assert failed: C:\blender-git\blender\source\blender\render\intern\engine.cc:1279, RE_engine_gpu_context_destroy(), at 'BLI_thread_is_main()'
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue