mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-26 17:02:23 +00:00
fix vulkan loader ext validate
Signed-off-by: andrew0229 <zhangzhao62@huawei.com> Change-Id: Ia7fbff3ac384fa4093a6ba9e61afcfdedbecd0d2
This commit is contained in:
parent
8d4a42b479
commit
fe985099a8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user