From d8e45c86e6c42aba1d14f759ed4f67abfcdb11c1 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 21 Dec 2018 17:17:19 +0300 Subject: [PATCH] vk: Remove old useless hack that interferes with memory inheritance --- rpcs3/Emu/RSX/VK/VKRenderTargets.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.h b/rpcs3/Emu/RSX/VK/VKRenderTargets.h index 9ac9ac7f2b..0562961c39 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.h +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.h @@ -155,12 +155,10 @@ namespace rsx rtt->native_pitch = (u16)width * get_format_block_size_in_bytes(format); rtt->surface_width = (u16)width; rtt->surface_height = (u16)height; + rtt->old_contents = old_surface; rtt->queue_tag(address); rtt->dirty = true; - if (old_surface != nullptr && old_surface->info.format == requested_format) - rtt->old_contents = old_surface; - return rtt; } @@ -201,12 +199,10 @@ namespace rsx ds->attachment_aspect_flag = range.aspectMask; ds->surface_width = (u16)width; ds->surface_height = (u16)height; + ds->old_contents = old_surface; ds->queue_tag(address); ds->dirty = true; - if (old_surface != nullptr && old_surface->info.format == requested_format) - ds->old_contents = old_surface; - return ds; }