mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
st/oxr: Return XR_ERROR_SWAPCHAIN_RECT_INVALID.
For out of bounds imageRect offsets on quad layers.
This commit is contained in:
parent
1bad77efb4
commit
b1541c2d1e
|
@ -496,6 +496,13 @@ verify_quad_layer(struct xrt_compositor *xc,
|
|||
layer_index);
|
||||
}
|
||||
|
||||
if (quad->subImage.imageRect.offset.x >= 1 ||
|
||||
quad->subImage.imageRect.offset.y >= 1) {
|
||||
return oxr_error(log, XR_ERROR_SWAPCHAIN_RECT_INVALID,
|
||||
"imageRect offset out of bounds for layer %u.",
|
||||
layer_index);
|
||||
}
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue