summaryrefslogtreecommitdiff
path: root/c++/window-opengl/gl_xcb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/window-opengl/gl_xcb.cpp')
-rw-r--r--c++/window-opengl/gl_xcb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp
index 3bcd21a..a670589 100644
--- a/c++/window-opengl/gl_xcb.cpp
+++ b/c++/window-opengl/gl_xcb.cpp
@@ -201,15 +201,15 @@ 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) {
+ assert(context_->device);
+ if (context_->device) {
::glXDestroyWindow(context_->device_->get_xcb_display(), glx_window_);
}
}
void gpu_window<backend::gl_linux_xcb>::bind() {
assert(window_ && context_->device_ && context_->device_->get_xcb_display());
- if (window) {
+ if (window_) {
if (context_->device_ && context_->device_->get_xcb_display()) {
::glXMakeContextCurrent(context_->device_->get_xcb_display(), glx_window_,
glx_window_, context_->context);
@@ -220,14 +220,14 @@ void gpu_window<backend::gl_linux_xcb>::bind() {
void gpu_window<backend::gl_linux_xcb>::show() {
assert(window_);
if (window_) {
- window->show();
+ window_->show();
}
}
void gpu_window<backend::gl_linux_xcb>::hide() {
assert(window_);
if (window_) {
- window->hide();
+ window_->hide();
}
}