From 6fecdd563f3bf94dadedc78512a1b28c08c67e07 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 3 Feb 2016 15:14:46 -0700 Subject: loader: Only use driver's DebugReport if it has one Change-Id: Ic020b9d5a95c9ddd20dd4c94fd6e7de050b83f2b (cherry picked from commit b776ba1cff149bb724a1958cc3f470ba5c113b63) --- vulkan/libvulkan/loader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vulkan/libvulkan/loader.cpp') diff --git a/vulkan/libvulkan/loader.cpp b/vulkan/libvulkan/loader.cpp index 939f3b919f..ba5414e8fe 100644 --- a/vulkan/libvulkan/loader.cpp +++ b/vulkan/libvulkan/loader.cpp @@ -547,11 +547,14 @@ VkResult CreateInstance_Bottom(const VkInstanceCreateInfo* create_info, enabled_extensions.set(id); continue; } - if (id == kKHR_surface || id == kKHR_android_surface || - id == kEXT_debug_report) { + if (id == kKHR_surface || id == kKHR_android_surface) { enabled_extensions.set(id); continue; } + // The loader natively supports debug report. + if (id == kEXT_debug_report) { + continue; + } } bool supported = false; for (const auto& layer : instance.active_layers) { -- cgit v1.2.3-59-g8ed1b