fix vulkan loader ext validate

Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: Ia7fbff3ac384fa4093a6ba9e61afcfdedbecd0d2
This commit is contained in:
andrew0229 2024-02-05 08:20:34 +00:00
parent 8d4a42b479
commit fe985099a8

View File

@ -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;
}