summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-26 17:45:39 +0100
committerGitHub <noreply@github.com>2023-12-26 17:45:39 +0100
commit69b7100dac80ebe94bcb4574bd21f9f6a229e322 (patch)
treefeb073920f80927d56564da25dfc4e219760b6d8
parentMerge pull request #12448 from liamwhite/format-assert (diff)
parentrenderer_vulkan: skip SetObjectNameEXT on unsupported driver (diff)
downloadyuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar.gz
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar.bz2
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar.lz
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar.xz
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.tar.zst
yuzu-69b7100dac80ebe94bcb4574bd21f9f6a229e322.zip
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp
index 2f78b8af0..074aed964 100644
--- a/src/video_core/vulkan_common/vulkan_wrapper.cpp
+++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp
@@ -246,7 +246,9 @@ void SetObjectName(const DeviceDispatch* dld, VkDevice device, T handle, VkObjec
.objectHandle = reinterpret_cast<u64>(handle),
.pObjectName = name,
};
- Check(dld->vkSetDebugUtilsObjectNameEXT(device, &name_info));
+ if (dld->vkSetDebugUtilsObjectNameEXT) {
+ Check(dld->vkSetDebugUtilsObjectNameEXT(device, &name_info));
+ }
}
} // Anonymous namespace