From 997954a940ac95f132e259a77a7926ecc693f0cf Mon Sep 17 00:00:00 2001 From: Piers Daniell Date: Thu, 14 Apr 2016 16:57:06 -0600 Subject: loader: `Remove the ICD and Layers search path for Windows This makes it more like Linux which leaves it up to the system LoadLibrary() call to find the .dll as specified in the .json files. Hard-coding "C:" or any other search path creates the possibility of picking up the wrong .dll. The LoadLibrary() implementation does the right thing. Change-Id: I58cbdf230a1e86481067efb4aec03447ee55f1ff --- loader/vk_loader_platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index 614abb9b..239115bd 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -254,10 +254,10 @@ using namespace std; #define DEFAULT_VK_REGISTRY_HIVE HKEY_LOCAL_MACHINE #define DEFAULT_VK_DRIVERS_INFO "SOFTWARE\\Khronos\\Vulkan\\Drivers" // TODO: Are these the correct paths -#define DEFAULT_VK_DRIVERS_PATH "C:\\Windows\\System32;C:\\Windows\\SysWow64" +#define DEFAULT_VK_DRIVERS_PATH "" #define DEFAULT_VK_ELAYERS_INFO "SOFTWARE\\Khronos\\Vulkan\\ExplicitLayers" #define DEFAULT_VK_ILAYERS_INFO "SOFTWARE\\Khronos\\Vulkan\\ImplicitLayers" -#define DEFAULT_VK_LAYERS_PATH "C:\\Windows\\System32;C:\\Windows\\SysWow64" +#define DEFAULT_VK_LAYERS_PATH "" #define LAYERS_PATH_ENV "VK_LAYER_PATH" #define HOME_VK_DRIVERS_INFO "" #define HOME_VK_ELAYERS_INFO "" -- cgit v1.2.3