[Bf-blender-cvs] [8852fd94d22] cycles-x: Fix crash in background rendering after recent clearing bugfix
Brecht Van Lommel
noreply at git.blender.org
Fri Sep 17 15:25:19 CEST 2021
Commit: 8852fd94d22a4f99d8f131f49e94744433046f53
Author: Brecht Van Lommel
Date: Fri Sep 17 15:19:51 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB8852fd94d22a4f99d8f131f49e94744433046f53
Fix crash in background rendering after recent clearing bugfix
===================================================================
M intern/cycles/integrator/path_trace.cpp
===================================================================
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index b5ab7768c4f..dbeb6d0696c 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -524,7 +524,9 @@ void PathTrace::set_gpu_display(unique_ptr<GPUDisplay> gpu_display)
void PathTrace::clear_gpu_display()
{
- gpu_display_->clear();
+ if (gpu_display_) {
+ gpu_display_->clear();
+ }
}
void PathTrace::draw()
More information about the Bf-blender-cvs
mailing list