From 0a47f95e4a53637895bf6ad941ce995b3a2b79c9 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 8 Nov 2025 05:31:59 +0000 Subject: [PATCH] fx --- src/video_core/vulkan_common/vulkan_device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 269b31d4c0..34911758db 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -750,8 +750,10 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR }; try { const auto test_sampler = logical.CreateSampler(sampler_ci); + // dson't allow to optimize away + (void)test_sampler; // Destroy immediately; this is just a capability test. - logical.DestroySampler(test_sampler); + logical.Destroy(test_sampler); LOG_INFO(Render_Vulkan, "VK_EXT_custom_border_color runtime test passed"); } catch (const vk::Exception& e) { LOG_WARNING(Render_Vulkan, "VK_EXT_custom_border_color advertised but sampler create failed: {}. Disabling feature.", e.what());