mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
c/util: Print warning when attempting to create protected content swapchain
This commit is contained in:
parent
22c7fea639
commit
322ce27163
|
@ -280,7 +280,9 @@ comp_swapchain_create(struct vk_bundle *vk,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((info->create & XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT) != 0) {
|
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;
|
return XRT_ERROR_SWAPCHAIN_FLAG_VALID_BUT_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue