summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-09 18:22:36 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-09 18:22:36 +1000
commitb3c60b4cbe88d76a9999d25b1e742dbcd4992b53 (patch)
treeaafc60c5a8d51b26043f40155cbfb79c0404b405 /src
parentdcf6f9a071baa3b3a245cf810ea26ab15e45b568 (diff)
vulkan: Rename resolve_image to resolve_image_holder
Fix Android compilation with latest NDK (28.0.13004108) and Java JDK 21 by renaming the resolve_image variable to resolve_image_holder to avoid potential naming conflicts. This change helps maintain compatibility with the updated build toolchain while keeping the core functionality intact. The change affects the MSAA image copy operation in the Vulkan texture cache implementation.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
index 70b50e69d..bcccb0af8 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
@@ -1490,10 +1490,10 @@ void TextureCacheRuntime::CopyImageMSAA(Image& dst, Image& src, std::span<const
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
};
- const auto resolve_image = memory_allocator.CreateImage(resolve_ci);
+ const auto resolve_image_holder = memory_allocator.CreateImage(resolve_ci);
scheduler.RequestOutsideRenderPassOperationContext();
- scheduler.Record([src_image, dst_image, resolve_image = *resolve_image,
+ scheduler.Record([src_image, dst_image, resolve_image = *resolve_image_holder,
copies, aspect_mask](vk::CommandBuffer cmdbuf) {
for (const auto& copy : copies) {
const VkExtent3D extent{