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

around the UI a bit)
This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:31:02 +01:00
1 parent 5ca012e83d
commit 79fd828d16
1 file changed
+4
+4
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) {