From 9ecfecb83ee94c33381658da0a56d3a20b640f01 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 27 Jun 2023 16:04:09 +0300 Subject: [PATCH] Constify --- rpcs3/Emu/RSX/VK/VKTexture.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKTexture.cpp b/rpcs3/Emu/RSX/VK/VKTexture.cpp index 349697ffd7..3c7c8e478b 100644 --- a/rpcs3/Emu/RSX/VK/VKTexture.cpp +++ b/rpcs3/Emu/RSX/VK/VKTexture.cpp @@ -122,8 +122,8 @@ namespace vk if (options.sync_region) { - u64 sync_end = options.sync_region.offset + options.sync_region.length; - u64 write_end = region.bufferOffset + packed16_length; + const u64 sync_end = options.sync_region.offset + options.sync_region.length; + const u64 write_end = region.bufferOffset + packed16_length; const u64 sync_offset = std::min(region.bufferOffset, options.sync_region.offset); const u64 sync_length = std::max(sync_end, write_end) - sync_offset; @@ -202,8 +202,8 @@ namespace vk if (options.sync_region) { - u64 sync_end = options.sync_region.offset + options.sync_region.length; - u64 write_end = region.bufferOffset + packed_length; + const u64 sync_end = options.sync_region.offset + options.sync_region.length; + const u64 write_end = region.bufferOffset + packed_length; const u64 sync_offset = std::min(region.bufferOffset, options.sync_region.offset); const u64 sync_length = std::max(sync_end, write_end) - sync_offset;