UserContext: fixed wayland platform

This commit is contained in:
Doug Binks 2022-03-31 19:53:09 +01:00
parent 23d31b805a
commit dcf9a51b78
3 changed files with 3 additions and 1 deletions

View File

@ -1102,6 +1102,7 @@ GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform)
_glfwWaitEventsWayland, _glfwWaitEventsWayland,
_glfwWaitEventsTimeoutWayland, _glfwWaitEventsTimeoutWayland,
_glfwPostEmptyEventWayland, _glfwPostEmptyEventWayland,
_glfwCreateUserContextWayland,
_glfwGetEGLPlatformWayland, _glfwGetEGLPlatformWayland,
_glfwGetEGLNativeDisplayWayland, _glfwGetEGLNativeDisplayWayland,
_glfwGetEGLNativeWindowWayland, _glfwGetEGLNativeWindowWayland,

View File

@ -498,3 +498,4 @@ void _glfwSetGammaRampWayland(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
void _glfwAddOutputWayland(uint32_t name, uint32_t version); void _glfwAddOutputWayland(uint32_t name, uint32_t version);
GLFWbool _glfwInputTextWayland(_GLFWwindow* window, uint32_t scancode); GLFWbool _glfwInputTextWayland(_GLFWwindow* window, uint32_t scancode);
_GLFWusercontext* _glfwCreateUserContextWayland(_GLFWwindow* window);

View File

@ -1860,7 +1860,7 @@ VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance,
return err; return err;
} }
_GLFWusercontext* _glfwPlatformCreateUserContext(_GLFWwindow* window) _GLFWusercontext* _glfwCreateUserContextWayland(_GLFWwindow* window)
{ {
if (window->context.egl.handle) if (window->context.egl.handle)
{ {