Turn off annoying "debug flicker" I used to see if we were swapping buffers properly early on

Also minor logging changes, refine the false-positive debug layer check
This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:31:02 +01:00
1 parent 79fd828d16
commit 575cc890b7
3 files changed
+12 -5

No files matched your search

+3 -2
View File
@@ -119,8 +119,9 @@ 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)
// Getting some bizarre false positives for mapping image memory.
// https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/121
if (msgCode == 6 && !memcmp(pMsg, "Cannot map", 10))
return false;
#ifdef _WIN32