loader: Resolve incorrect error in create instance
authorLenny Komow <lenny@lunarg.com>
Mon, 22 Oct 2018 19:16:56 +0000 (13:16 -0600)
committerLenny Komow <lenny@lunarg.com>
Mon, 22 Oct 2018 22:34:00 +0000 (16:34 -0600)
Change-Id: Ib3f99bb150ddf9aaa36cbe08919d737f2636baf6

loader/loader.c

index ffb58d9ecc9693a4230cbc1a933ae33d56acdb31..0cb26634630eb64e20a7f992f61da6016111c5e4 100644 (file)
@@ -3707,7 +3707,7 @@ static VkResult ReadDataFilesInRegistry(const struct loader_instance *inst, enum
             if (VK_SUCCESS == reg_result || VK_ERROR_OUT_OF_HOST_MEMORY == reg_result) {
                 vk_result = reg_result;
             } else {
-                vk_result = VK_ERROR_INCOMPATIBLE_DRIVER;
+                vk_result = regHKR_result;
             }
         } else {
             if (warn_if_not_present) {