diff --git a/BUILD.gn b/BUILD.gn index 7b2b71f27df3a514e7f4b36c223165948b2f7b57..77cfe271ca1192760e1a10ba7ff94f9549df13fe 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -96,7 +96,6 @@ ohos_shared_library("vulkan_loader") { ] public_external_deps = [ "vulkan-headers:vulkan_headers" ] - innerapi_tags = [ "platformsdk" ] output_name = "vulkan" output_extension = "so" diff --git a/loader/wsi.c b/loader/wsi.c index 56f9e6e1f1866825c298837a10559275adcde651..48602bbaa7116f910056f4764be40b389466a4b2 100644 --- a/loader/wsi.c +++ b/loader/wsi.c @@ -1266,9 +1266,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_ohos_surface_enabled) { + if (!loader_inst->wsi_display_enabled) { loader_log(loader_inst, VULKAN_LOADER_ERROR_BIT, 0, - "VK_OHOS_surface extension not enabled. vkCreateSurfaceOHOS not executed!\n"); + "VK_KHR_display extension not enabled. vkCreateSurfaceOHOS not executed!\n"); return VK_ERROR_EXTENSION_NOT_PRESENT; }