[Bf-blender-cvs] [99514645714] master: Fix T100956: Cycles GPU context assert after recent changes
Brecht Van Lommel
noreply at git.blender.org
Mon Sep 12 19:24:42 CEST 2022
Commit: 9951464571480b0ea5b246b67eb0612a5f87cff1
Author: Brecht Van Lommel
Date: Mon Sep 12 19:00:07 2022 +0200
Branches: master
https://developer.blender.org/rB9951464571480b0ea5b246b67eb0612a5f87cff1
Fix T100956: Cycles GPU context assert after recent changes
We don't need to be on the main thread to destroy the context.
===================================================================
M source/blender/render/intern/engine.cc
===================================================================
diff --git a/source/blender/render/intern/engine.cc b/source/blender/render/intern/engine.cc
index a440b34af78..0024ebe38f7 100644
--- a/source/blender/render/intern/engine.cc
+++ b/source/blender/render/intern/engine.cc
@@ -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);
More information about the Bf-blender-cvs
mailing list