Work around what seems like a validation layer bug (trigger by scrolling

around the UI a bit)
This commit is contained in:
Henrik Rydgard 2016-03-13 16:32:07 +01:00
parent 5ca012e83d
commit 79fd828d16

View file

@ -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) {