Commit 1fd9936f authored by Ryan Pavlik's avatar Ryan Pavlik

st/oxr: Fix enumerating swapchain formats on headless

parent 8cda1b6f
......@@ -62,6 +62,10 @@ oxr_session_enumerate_formats(struct oxr_logger *log,
int64_t *formats)
{
struct xrt_compositor *xc = sess->compositor;
if (formatCountOutput == NULL) {
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
"(formatCountOutput)");
}
if (xc == NULL) {
if (formatCountOutput != NULL) {
*formatCountOutput = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment