vk: Remove old useless hack that interferes with memory inheritance

This commit is contained in:
kd-11 2018-12-21 17:17:19 +03:00 committed by kd-11
parent 3be4b474d9
commit d8e45c86e6
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}