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;