From 23d31b805a681213f3b4d1d37c26e2304d6dc771 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Thu, 31 Mar 2022 19:27:11 +0100 Subject: [PATCH] UserContext: fixed x11 platform --- src/platform.h | 2 +- src/x11_platform.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform.h b/src/platform.h index c68e987d..9f8e3e00 100644 --- a/src/platform.h +++ b/src/platform.h @@ -183,4 +183,4 @@ #define GLFW_PLATFORM_USER_CONTEXT_STATE \ GLFW_WGL_USER_CONTEXT_STATE \ GLFW_NSGL_USER_CONTEXT_STATE \ - GLFW_GLX_USER_CONTEXT_STATE \ No newline at end of file + GLFW_GLX_USER_CONTEXT_STATE diff --git a/src/x11_platform.h b/src/x11_platform.h index eaa11ada..95eeed05 100644 --- a/src/x11_platform.h +++ b/src/x11_platform.h @@ -470,6 +470,7 @@ typedef struct _GLFWcontextGLX { GLXContext handle; GLXWindow window; + GLXFBConfig fbconfig; } _GLFWcontextGLX; // GLX-specific global data @@ -1009,4 +1010,4 @@ GLFWbool _glfwChooseVisualGLX(const _GLFWwndconfig* wndconfig, Visual** visual, int* depth); _GLFWusercontext* _glfwCreateUserContextX11(_GLFWwindow* window); -_GLFWusercontext* _glfwCreateUserContextWGL(_GLFWwindow* window); +_GLFWusercontext* _glfwCreateUserContextGLX(_GLFWwindow* window);