Skip to content

Commit

Permalink
Revert "Replace ugly workaround with VK_LAYER_LUNARG_unique_objects w…
Browse files Browse the repository at this point in the history
…hich prevents handle reuse."

This reverts commit 6342c07.
  • Loading branch information
hrydgard committed Mar 13, 2016
1 parent f64a8fe commit 1093fe4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Windows/GPU/WindowsVulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1093fe4

Please sign in to comment.