From dcf9a51b78791f831b05787adc494cd5930a3b1d Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Thu, 31 Mar 2022 19:53:09 +0100 Subject: [PATCH] UserContext: fixed wayland platform --- src/wl_init.c | 1 + src/wl_platform.h | 1 + src/wl_window.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wl_init.c b/src/wl_init.c index f02c6320..16570829 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -1102,6 +1102,7 @@ GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform) _glfwWaitEventsWayland, _glfwWaitEventsTimeoutWayland, _glfwPostEmptyEventWayland, + _glfwCreateUserContextWayland, _glfwGetEGLPlatformWayland, _glfwGetEGLNativeDisplayWayland, _glfwGetEGLNativeWindowWayland, diff --git a/src/wl_platform.h b/src/wl_platform.h index ba405714..2b84a10c 100644 --- a/src/wl_platform.h +++ b/src/wl_platform.h @@ -498,3 +498,4 @@ void _glfwSetGammaRampWayland(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); void _glfwAddOutputWayland(uint32_t name, uint32_t version); GLFWbool _glfwInputTextWayland(_GLFWwindow* window, uint32_t scancode); +_GLFWusercontext* _glfwCreateUserContextWayland(_GLFWwindow* window); diff --git a/src/wl_window.c b/src/wl_window.c index 165a1bd4..f3f5648a 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1860,7 +1860,7 @@ VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance, return err; } -_GLFWusercontext* _glfwPlatformCreateUserContext(_GLFWwindow* window) +_GLFWusercontext* _glfwCreateUserContextWayland(_GLFWwindow* window) { if (window->context.egl.handle) {