c/util: Print warning when attempting to create protected content swapchain

This commit is contained in:
Christoph Haag 2022-04-01 02:00:19 +02:00 committed by Jakob Bornecrantz
parent 22c7fea639
commit 322ce27163

View file

@ -280,7 +280,9 @@ comp_swapchain_create(struct vk_bundle *vk,
}
if ((info->create & XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT) != 0) {
// This compositor doesn't support creating protected content swapchains.
VK_WARN(vk,
"Swapchain info is valid but this compositor doesn't support creating protected content "
"swapchains!");
return XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED;
}