diff --git a/src/core/os_glfw.h b/src/core/os_glfw.h index a8e58e32..71ba744f 100644 --- a/src/core/os_glfw.h +++ b/src/core/os_glfw.h @@ -346,7 +346,7 @@ HANDLE os_get_win32_window() { return (HANDLE) glfwGetWin32Window(glfwState.window); } -HGLRC os_get_context() { +HGLRC os_get_win32_context() { return glfwGetWGLContext(glfwState.window); } #endif diff --git a/src/modules/headset/headset_openxr.c b/src/modules/headset/headset_openxr.c index c30b6e57..93d10567 100644 --- a/src/modules/headset/headset_openxr.c +++ b/src/modules/headset/headset_openxr.c @@ -55,7 +55,7 @@ #if defined(_WIN32) HANDLE os_get_win32_window(void); -HGLRC os_get_context(void); +HGLRC os_get_win32_context(void); #elif defined(__ANDROID__) struct ANativeActivity* os_get_activity(void); EGLDisplay os_get_egl_display(void); @@ -364,7 +364,7 @@ static void openxr_start(void) { XrGraphicsBindingOpenGLWin32KHR graphicsBinding = { .type = XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR, .hDC = GetDC(os_get_win32_window()), - .hGLRC = os_get_context() + .hGLRC = os_get_win32_context() }; #elif defined(__ANDROID__) && defined(LOVR_GLES) XrGraphicsBindingOpenGLESAndroidKHR graphicsBinding = {