From 8c82c594f0974c7ae4d58660efd7d11361007faf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 27 Jul 2021 07:16:44 -0400 Subject: vulkan_wrapper: Fix SetObjectName() always indicating objects as images We should be using the passed in object type instead. --- src/video_core/vulkan_common/vulkan_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index bbf0fccae..70898004a 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -202,7 +202,7 @@ void SetObjectName(const DeviceDispatch* dld, VkDevice device, T handle, VkObjec const VkDebugUtilsObjectNameInfoEXT name_info{ .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT, .pNext = nullptr, - .objectType = VK_OBJECT_TYPE_IMAGE, + .objectType = type, .objectHandle = reinterpret_cast(handle), .pObjectName = name, }; -- cgit v1.2.3