From bca833dad77c8bd6ebda22838d0d305d7c2c72ea Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 19 Aug 2022 22:14:11 +0300 Subject: [PATCH] Fix surface reuse --- rpcs3/Emu/RSX/Common/surface_store.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/surface_store.h b/rpcs3/Emu/RSX/Common/surface_store.h index 4d5005fd64..67d8d5cb9d 100644 --- a/rpcs3/Emu/RSX/Common/surface_store.h +++ b/rpcs3/Emu/RSX/Common/surface_store.h @@ -445,9 +445,8 @@ namespace rsx if (Traits::surface_matches_properties(surface, format, width, height, antialias)) { - if (old_surface) + if (!pitch_compatible) { - ensure(!pitch_compatible); Traits::invalidate_surface_contents(command_list, Traits::get(surface), address, pitch); }