Revert "Replace ugly workaround with VK_LAYER_LUNARG_unique_objects which prevents handle reuse."

This reverts commit 6342c07a19d5ab410cbc233a570488214923a9f8.
This commit is contained in:
Henrik Rydgard 2016-03-13 17:44:38 +01:00
parent fe270c592a
commit 76b17a4912

View file

@ -119,6 +119,11 @@ static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugRep
}
message << "[" << pLayerPrefix << "] " << ObjTypeToString(objType) << " Code " << msgCode << " : " << pMsg << "\n";
// 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
OutputDebugStringA(message.str().c_str());
if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {