mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
st/oxr: Change result code for invalid OpenGL context to match spec
This commit is contained in:
parent
9054dc01ca
commit
67c47fbcb3
|
@ -586,11 +586,11 @@ oxr_verify_XrGraphicsBindingOpenGLWin32KHR(struct oxr_logger *log, const XrGraph
|
|||
}
|
||||
|
||||
if (next->hDC == NULL) {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "hDC is NULL");
|
||||
return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, "hDC is NULL");
|
||||
}
|
||||
|
||||
if (next->hGLRC == NULL) {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "hGLRC is NULL");
|
||||
return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, "hGLRC is NULL");
|
||||
}
|
||||
|
||||
return XR_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue