mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
st/oxr: Return appropriate errors for incomplete OpenGL XLib binding
* xDisplay must be a pointer to a Display value * glxDrawable must be a valid GLXDrawable value * glxContext must be a valid GLXContext value intentionally not checked: * glxFBConfig must be a valid GLXFBConfig value We don't care about this one for now.
This commit is contained in:
parent
4c7f830ea5
commit
e78e5c8045
|
@ -538,6 +538,22 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(
|
||||||
"Graphics binding has invalid type");
|
"Graphics binding has invalid type");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (next->xDisplay == NULL) {
|
||||||
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||||
|
"xDisplay is NULL");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (next->glxContext == NULL) {
|
||||||
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||||
|
"glxContext is NULL");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (next->glxDrawable == NULL) {
|
||||||
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||||
|
"glxDrawable is NULL");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return XR_SUCCESS;
|
return XR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue