From e638bae631bd30808a5a9262365fae3b4e6f23a7 Mon Sep 17 00:00:00 2001 From: AniLeo Date: Mon, 17 May 2021 16:20:50 +0100 Subject: [PATCH] One more --- rpcs3/Emu/RSX/VK/VKRenderTargets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp index 8eaef46bb83e..632b17431802 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp @@ -223,7 +223,7 @@ namespace vk subres.height_in_block = subres.height_in_texel = surface_height * samples_y; subres.pitch_in_block = rsx_pitch / get_bpp(); subres.depth = 1; - subres.data = { vm::get_super_ptr(base_addr), static_cast::index_type>(rsx_pitch * surface_height * samples_y) }; + subres.data = { vm::get_super_ptr(base_addr), static_cast::size_type>(rsx_pitch * surface_height * samples_y) }; if (g_cfg.video.resolution_scale_percent == 100 && spp == 1) [[likely]] {