From 99a8a934313876c62d1da0fd30a6097668a37a59 Mon Sep 17 00:00:00 2001 From: andrew0229 Date: Mon, 5 Feb 2024 08:20:34 +0000 Subject: [PATCH] fixed fe98509 from https://gitee.com/andrew0229/third_party_vulkan-loader/pulls/27 fix vulkan loader ext validate Signed-off-by: andrew0229 Change-Id: Ia7fbff3ac384fa4093a6ba9e61afcfdedbecd0d2 --- loader/wsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/wsi.c b/loader/wsi.c index 80717879..fceb0397 100644 --- a/loader/wsi.c +++ b/loader/wsi.c @@ -1242,9 +1242,9 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateSurfaceOHOS(VkInstance instance, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { // First, check to ensure the appropriate extension was enabled: struct loader_instance *loader_inst = loader_get_instance(instance); - if (!loader_inst->wsi_display_enabled) { + if (!loader_inst->wsi_ohos_surface_enabled) { loader_log(loader_inst, VULKAN_LOADER_ERROR_BIT, 0, - "VK_KHR_display extension not enabled. vkCreateSurfaceOHOS not executed!\n"); + "VK_OHOS_surface extension not enabled. vkCreateSurfaceOHOS not executed!\n"); return VK_ERROR_EXTENSION_NOT_PRESENT; } -- Gitee