summaryrefslogtreecommitdiff
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rw-r--r--c++/window-opengl/gl_xcb.cpp12
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_);
}
}