Eevee: Fix prev_persmat being used by multiple viewport.
[blender.git] / source / blender / draw / engines / eevee / eevee_engine.c
index c1c298417e8ce2282666268b7127b61495f06bae..591ee9085c82f7248a71040bdccc8580927d32ff 100644 (file)
@@ -197,6 +197,8 @@ static void eevee_draw_background(void *vedata)
                        EEVEE_volumes_set_jitter(sldata, stl->effects->taa_current_sample - 1);
                        EEVEE_materials_init(sldata, stl, fbl);
                }
+               /* Copy previous persmat to UBO data */
+               copy_m4_m4(sldata->common_data.prev_persmat, stl->effects->prev_persmat);
 
                /* Refresh Probes */
                DRW_stats_group_start("Probes Refresh");