st/oxr: Change result code for invalid OpenGL context to match spec

This commit is contained in:
Bailey Morgan 2022-10-25 18:18:15 +00:00 committed by Jakob Bornecrantz
parent 9054dc01ca
commit 67c47fbcb3

View file

@ -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;