From bf9399504330888e23ca34b508d45139dad3a659 Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Mon, 23 Sep 2024 18:06:39 +0200 Subject: [PATCH] [Vk] Don't ask for VK_EXT_DEBUG_UTILS_EXTENSION_NAME if support was not declared. Fixed validation error on Samsung A33. --- RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp b/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp index e0580907d3..35d7d285b0 100644 --- a/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp +++ b/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp @@ -1294,7 +1294,8 @@ namespace Ogre { // Loader version < 1.1.114 is blacklisted as it will just crash. // See https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/258 - bAllow_VK_EXT_debug_utils = true; + bAllow_VK_EXT_debug_utils = + VulkanDevice::hasInstanceExtension( VK_EXT_DEBUG_UTILS_EXTENSION_NAME ); } } }