mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Fix enumerating swapchain formats on headless
This commit is contained in:
parent
8cda1b6f67
commit
1fd9936f95
|
@ -62,6 +62,10 @@ oxr_session_enumerate_formats(struct oxr_logger *log,
|
||||||
int64_t *formats)
|
int64_t *formats)
|
||||||
{
|
{
|
||||||
struct xrt_compositor *xc = sess->compositor;
|
struct xrt_compositor *xc = sess->compositor;
|
||||||
|
if (formatCountOutput == NULL) {
|
||||||
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||||
|
"(formatCountOutput)");
|
||||||
|
}
|
||||||
if (xc == NULL) {
|
if (xc == NULL) {
|
||||||
if (formatCountOutput != NULL) {
|
if (formatCountOutput != NULL) {
|
||||||
*formatCountOutput = 0;
|
*formatCountOutput = 0;
|
||||||
|
|
Loading…
Reference in a new issue