diff options
Diffstat (limited to 'source/blender/draw/engines/eevee_next')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_engine.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_engine.cc b/source/blender/draw/engines/eevee_next/eevee_engine.cc index 214f6a001f0..3ea6ea475d0 100644 --- a/source/blender/draw/engines/eevee_next/eevee_engine.cc +++ b/source/blender/draw/engines/eevee_next/eevee_engine.cc @@ -165,9 +165,7 @@ static void eevee_render_to_image(void *vedata, instance->render_frame(layer, viewname); EEVEE_Data *ved = static_cast<EEVEE_Data *>(vedata); - if (ved->instance) { - delete ved->instance; - } + delete ved->instance; ved->instance = instance; } |