Skip to content

Commit

Permalink
Replace ugly workaround with VK_LAYER_LUNARG_unique_objects which pre…
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Mar 13, 2016
1 parent b2a8009 commit 6342c07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions Common/Vulkan/VulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
using namespace std;

static const char *validationLayers[] = {
"VK_LAYER_LUNARG_unique_objects",
"VK_LAYER_LUNARG_standard_validation",
/*
"VK_LAYER_GOOGLE_threading",
Expand Down
5 changes: 0 additions & 5 deletions Windows/GPU/WindowsVulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ 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 6342c07

Please sign in to comment.