From 79fd828d16e1590175fbad0a8cf4edcd2459f65a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 13 Mar 2016 16:32:07 +0100 Subject: [PATCH] Work around what seems like a validation layer bug (trigger by scrolling around the UI a bit) --- Windows/GPU/WindowsVulkanContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 999b0031c4..57b43f96d8 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -119,6 +119,10 @@ static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugRep } message << "[" << pLayerPrefix << "] " << ObjTypeToString(objType) << " Code " << msgCode << " : " << pMsg << "\n"; + // Getting some bizarre false positive for mapping image memory. + if (msgCode == 6) + return false; + #ifdef _WIN32 OutputDebugStringA(message.str().c_str()); if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {