summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/x11/gl_manager_x11.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-03 21:32:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-03 21:32:50 +0100
commite80356bf3bafdac1e702bae2480e246ea78c996f (patch)
tree7982ed9f462497620f6423c4f8acfad508a69a1c /platform/linuxbsd/x11/gl_manager_x11.cpp
parent82b1cd67539aede9141972aaa6eb585be34eb573 (diff)
parent2dd5a792bb95f564574449a0ccbf2ad31bf57e45 (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.cpp4
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;
}