mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 11:55:39 +00:00
st/oxr: Fix swapchain format list assert
This commit is contained in:
parent
a3fdeb210b
commit
e2a6f0501e
|
@ -298,7 +298,7 @@ oxr_swapchain_common_create(struct oxr_logger *log,
|
|||
|
||||
if (format_list) {
|
||||
// Check in oxr_api_swapchain.c verification.
|
||||
assert((createInfo->usageFlags & XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT) == 0);
|
||||
assert((createInfo->usageFlags & XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT) != 0);
|
||||
|
||||
if (format_list->viewFormatCount > ARRAY_SIZE(info.formats)) {
|
||||
/* Hardcoded limit of 8 formats */
|
||||
|
|
Loading…
Reference in a new issue