From 67c47fbcb3bc3c90c1cec8c53ce3ead323edf009 Mon Sep 17 00:00:00 2001
From: Bailey Morgan <bmorgan@magicleap.com>
Date: Tue, 25 Oct 2022 18:18:15 +0000
Subject: [PATCH] st/oxr: Change result code for invalid OpenGL context to
 match spec

---
 src/xrt/state_trackers/oxr/oxr_verify.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c
index 561d27852..a87cac367 100644
--- a/src/xrt/state_trackers/oxr/oxr_verify.c
+++ b/src/xrt/state_trackers/oxr/oxr_verify.c
@@ -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;