diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-23 01:04:43 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-23 01:04:43 +0200 |
commit | 5dd004464d37c3f0e334423588bc9d140b573255 (patch) | |
tree | 4be38f8f6871f4f138cd200ba2aae54776ff8395 /c++/window-opengl/gl_xcb.cpp | |
parent | a48d7e46fdb17b968960c9760209324322f22979 (diff) |
c++,window: Implemented missing functions
Diffstat (limited to 'c++/window-opengl/gl_xcb.cpp')
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp index 42e8f5d..41c262a 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -86,7 +86,7 @@ own<gl_window<gl::backend::linux_xcb>> gl_context<gl::backend::linux_xcb>::creat return nullptr; } - ::GLXWindow glx_win = glXCreateWindow(device_->get_xcb_display(), fb_config_, win->xcb_window_, nullptr); + ::GLXWindow glx_win = glXCreateWindow(device_->get_xcb_display(), fb_config_, win->get_xcb_window_handle(), nullptr); return heap<gl_window<gl::backend::linux_xcb>>(std::move(win), *this, glx_win); } @@ -194,7 +194,7 @@ own<gl_context<gl::backend::linux_xcb> > create_gl_context(io_provider& prov, co gl_window<gl::backend::linux_xcb>::gl_window(own<xcb_window> &&win, gl_context<gl::backend::linux_xcb> &ctx, ::GLXWindow glx_win) - : window_{std::move(win)}, context_{&ctx}, glx_window_{glx_win} {} + : window_{std::move(win)}, context_{&ctx}, glx_window_handle_{glx_win} {} gl_window<gl::backend::linux_xcb>::~gl_window() { assert(context.device); |