From 035a76f26db278e2d9555b07137b77cb22b7dcc0 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 15 Dec 2020 20:40:54 +0300 Subject: [PATCH] Fix build --- rpcs3/Emu/RSX/Common/texture_cache.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index 9863a5dbfb..2e50187168 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -269,8 +269,8 @@ namespace rsx * Optionally returns a second variable that contains the surface reference. * The surface reference can be used to insert a texture barrier or inject a deferred resource */ - template - std::pair is_expired(surface_store_type& surface_cache) + template + std::pair is_expired(surface_store_type& surface_cache) { if (upload_context != rsx::texture_upload_context::framebuffer_storage || surface_cache_tag == surface_cache.cache_tag) @@ -282,13 +282,13 @@ namespace rsx auto ref_image = image_handle ? image_handle->image() : external_subresource_desc.external_handle; if (ref_image) { - if (auto as_rtt = dynamic_cast(ref_image); - as_rtt && as_rtt == surface_cache.get_surface_at(ref_address)) + if (auto surface = dynamic_cast(ref_image); + surface && surface == surface_cache.get_surface_at(ref_address)) { // Fast sync surface_cache_tag = surface_cache.cache_tag; is_cyclic_reference = surface_cache.address_is_bound(ref_address); - return { false, as_rtt }; + return { false, surface }; } }