diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-09-19 16:35:23 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-09-19 16:35:23 +0200 |
commit | 76a3ec8c5377fde11acca835eadb5e5489da9451 (patch) | |
tree | 12d782373eba834e388b3f26b40052a7ad928847 | |
parent | 5eaa4c982f8582122c15b259c9810c00498af6a8 (diff) |
window-opengl: More fixes for proper naming
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp index 895cda9..c758b80 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -201,9 +201,9 @@ gpu_window<backend::gl_linux_xcb>::gpu_window(own<xcb_window> &&win, gpu_context : window_{std::move(win)}, context_{&ctx}, glx_window_handle_{glx_win} {} gpu_window<backend::gl_linux_xcb>::~gpu_window() { - assert(context_->device); - if (context_->device) { - ::glXDestroyWindow(context_->device_->get_xcb_display(), glx_window_); + assert(context_->device_); + if (context_->device_) { + ::glXDestroyWindow(context_->device_->get_xcb_display(), glx_window_handle_); } } @@ -211,8 +211,8 @@ void gpu_window<backend::gl_linux_xcb>::bind() { assert(window_ && context_->device_ && context_->device_->get_xcb_display()); if (window_) { if (context_->device_ && context_->device_->get_xcb_display()) { - ::glXMakeContextCurrent(context_->device_->get_xcb_display(), glx_window_, - glx_window_, context_->context); + ::glXMakeContextCurrent(context_->device_->get_xcb_display(), glx_window_handle_, + glx_window_handle_, context_->context_); } } } @@ -235,7 +235,7 @@ void gpu_window<backend::gl_linux_xcb>::swap() { assert(context_->device_); assert(context_->device_->get_xcb_display()); if (context_->device_ && context_->device_->get_xcb_display()) { - ::glXSwapBuffers(context_->device_->get_xcb_display(), glx_window_); + ::glXSwapBuffers(context_->device_->get_xcb_display(), glx_window_handle_); } } |