1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Fix surface reuse

This commit is contained in:
kd-11 2022-08-19 22:14:11 +03:00 committed by kd-11
parent f981e05908
commit bca833dad7

View File

@ -445,9 +445,8 @@ namespace rsx
if (Traits::surface_matches_properties(surface, format, width, height, antialias)) 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); Traits::invalidate_surface_contents(command_list, Traits::get(surface), address, pitch);
} }