Fix workbench background render broken after recent changes from D15463
For Eevee the light baking can initialize OpenGL earlier, but for workbench we can't assume the backend exists here already.
This commit is contained in:
parent
92a99c1496
commit
b985437283
Notes:
blender-bot
2023-02-14 08:38:14 +01:00
Referenced by issue #100246, Ambient Occlusion crashes CUDA
|
@ -952,7 +952,7 @@ bool RE_engine_render(Render *re, bool do_all)
|
|||
re->draw_lock(re->dlh, true);
|
||||
}
|
||||
|
||||
if ((type->flag & RE_USE_GPU_CONTEXT) && (GPU_backend_get_type() == GPU_BACKEND_NONE)) {
|
||||
if ((type->flag & RE_USE_GPU_CONTEXT) && !GPU_backend_supported()) {
|
||||
/* Clear UI drawing locks. */
|
||||
if (re->draw_lock) {
|
||||
re->draw_lock(re->dlh, false);
|
||||
|
|
Loading…
Reference in New Issue