diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-03 21:32:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-03 21:32:50 +0100 |
commit | e80356bf3bafdac1e702bae2480e246ea78c996f (patch) | |
tree | 7982ed9f462497620f6423c4f8acfad508a69a1c /platform/linuxbsd/x11/gl_manager_x11.cpp | |
parent | 82b1cd67539aede9141972aaa6eb585be34eb573 (diff) | |
parent | 2dd5a792bb95f564574449a0ccbf2ad31bf57e45 (diff) |
Merge pull request #69449 from Riteo/x11-dynwrapper
Load X11 dynamically
Diffstat (limited to 'platform/linuxbsd/x11/gl_manager_x11.cpp')
-rw-r--r-- | platform/linuxbsd/x11/gl_manager_x11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/x11/gl_manager_x11.cpp b/platform/linuxbsd/x11/gl_manager_x11.cpp index bcefcf9695..12846f148d 100644 --- a/platform/linuxbsd/x11/gl_manager_x11.cpp +++ b/platform/linuxbsd/x11/gl_manager_x11.cpp @@ -321,8 +321,8 @@ void GLManager_X11::swap_buffers() { glXSwapBuffers(_x_windisp.x11_display, _x_windisp.x11_window); } -Error GLManager_X11::initialize() { - if (!gladLoaderLoadGLX(nullptr, 0)) { +Error GLManager_X11::initialize(Display *p_display) { + if (!gladLoaderLoadGLX(p_display, XScreenNumberOfScreen(XDefaultScreenOfDisplay(p_display)))) { return ERR_CANT_CREATE; } |