From fd4ef48971faa23f01c1f0729e7c658a37a8131d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 7 May 2017 18:08:31 +0200 Subject: [PATCH] Windows debug builds: Only break on Vulkan validation warnings if a debugger is attached. --- Windows/GPU/WindowsVulkanContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 5f82924a0..1d0dad0f5 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -134,7 +134,7 @@ static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugRep std::string msg = message.str(); OutputDebugStringA(msg.c_str()); if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) { - if (options->breakOnError) { + if (options->breakOnError && IsDebuggerPresent()) { DebugBreak(); } if (options->msgBoxOnError) {