From d09a802a175fd504a64fcce6658dd0e3a2b0b429 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 13 Sep 2020 00:30:54 +1000 Subject: [PATCH] Vulkan/Context: Use VK_LAYER_KHRONOS_validation --- src/common/vulkan/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/vulkan/context.cpp b/src/common/vulkan/context.cpp index 90959dd31..f827574b9 100644 --- a/src/common/vulkan/context.cpp +++ b/src/common/vulkan/context.cpp @@ -91,7 +91,7 @@ bool Context::CheckValidationLayerAvailablility() return strcmp(it.extensionName, VK_EXT_DEBUG_REPORT_EXTENSION_NAME) == 0; }) != extension_list.end() && std::find_if(layer_list.begin(), layer_list.end(), [](const auto& it) { - return strcmp(it.layerName, "VK_LAYER_LUNARG_standard_validation") == 0; + return strcmp(it.layerName, "VK_LAYER_KHRONOS_validation") == 0; }) != layer_list.end()); } @@ -123,7 +123,7 @@ VkInstance Context::CreateVulkanInstance(bool enable_surface, bool enable_debug_ // Enable debug layer on debug builds if (enable_validation_layer) { - static const char* layer_names[] = {"VK_LAYER_LUNARG_standard_validation"}; + static const char* layer_names[] = {"VK_LAYER_KHRONOS_validation"}; instance_create_info.enabledLayerCount = 1; instance_create_info.ppEnabledLayerNames = layer_names; }