OpenXR: Windows graphics plugin properly uses HDC instead of HWND;

The HWND was getting passed in directly instead of first converting
it to an HDC.  This was causing SteamVR to fail to create its OpenGL
context.
This commit is contained in:
bjorn 2022-03-15 15:21:04 -07:00
parent 47a4becc48
commit 450ee72c89
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ static void openxr_start(void) {
#if defined(_WIN32) && defined(LOVR_GL)
XrGraphicsBindingOpenGLWin32KHR graphicsBinding = {
.type = XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR,
.hDC = os_get_win32_window(),
.hDC = GetDC(os_get_win32_window()),
.hGLRC = os_get_context()
};
#elif defined(__ANDROID__) && defined(LOVR_GLES)