The open source OpenXR runtime

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

authored by

Bailey Morgan and committed by
Jakob Bornecrantz
67c47fbc 9054dc01

+2 -2
+2 -2
src/xrt/state_trackers/oxr/oxr_verify.c
··· 586 586 } 587 587 588 588 if (next->hDC == NULL) { 589 - return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "hDC is NULL"); 589 + return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, "hDC is NULL"); 590 590 } 591 591 592 592 if (next->hGLRC == NULL) { 593 - return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "hGLRC is NULL"); 593 + return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, "hGLRC is NULL"); 594 594 } 595 595 596 596 return XR_SUCCESS;