Disable VK_EXT_tooling_info check for debugger on Linux

This commit is contained in:
Wojtek Figat
2024-10-22 21:54:38 +02:00
parent 16235c21c0
commit 0b1263a9e2
2 changed files with 3 additions and 1 deletions

View File

@@ -200,7 +200,7 @@ bool GraphicsService::Init()
#endif
)
{
#if !USE_EDITOR && BUILD_RELEASE
#if !USE_EDITOR && BUILD_RELEASE && !PLATFORM_LINUX // IsDebugToolAttached seams to be enabled on many Linux machines via VK_EXT_tooling_info
// Block graphics debugging to protect contents
Platform::Fatal(TEXT("Graphics debugger attached."));
#endif

View File

@@ -483,10 +483,12 @@ void GPUDeviceVulkan::GetDeviceExtensionsAndLayers(VkPhysicalDevice gpu, Array<c
}
// Add device layers for debugging
#ifdef VK_EXT_tooling_info
if (ListContains(foundUniqueExtensions, "VK_EXT_tooling_info"))
{
IsDebugToolAttached = true;
}
#endif
#if VULKAN_USE_DEBUG_LAYER
bool hasKhronosStandardValidationLayer = false, hasLunargStandardValidationLayer = false;
#if VULKAN_USE_KHRONOS_STANDARD_VALIDATION