summaryrefslogtreecommitdiff
path: root/c++/window-opengl
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:31:28 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:31:28 +0200
commit9f33816dc0cb09febb454ff4f3ba38467f6d0618 (patch)
tree8d088000ceea8d619fcf469244bd9ff1f6c157fe /c++/window-opengl
parent4de4b32c2d21aa4a97efaec9c73f3838abdabe0b (diff)
window-opengl: Fixing up more badly named calls
Diffstat (limited to 'c++/window-opengl')
-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();
}
}