summaryrefslogtreecommitdiff
path: root/c++
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:33:14 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:33:14 +0200
commit5eaa4c982f8582122c15b259c9810c00498af6a8 (patch)
tree5fa7b28c51f5986697a6512d6dcd8aadf8677931 /c++
parent9f33816dc0cb09febb454ff4f3ba38467f6d0618 (diff)
window-opengl: More proper call fixes
Diffstat (limited to 'c++')
-rw-r--r--c++/window-opengl/gl_xcb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp
index a670589..895cda9 100644
--- a/c++/window-opengl/gl_xcb.cpp
+++ b/c++/window-opengl/gl_xcb.cpp
@@ -234,7 +234,7 @@ void gpu_window<backend::gl_linux_xcb>::hide() {
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()) {
+ if (context_->device_ && context_->device_->get_xcb_display()) {
::glXSwapBuffers(context_->device_->get_xcb_display(), glx_window_);
}
}
@@ -256,11 +256,11 @@ const std::string_view gpu_window<backend::gl_linux_xcb>::title() const {
void gpu_window<backend::gl_linux_xcb>::resize(size_t height, size_t width) {
assert(window_);
if (window_) {
- window->resize(height, width);
+ window_->resize(height, width);
}
}
-conveyor<window::variant_event> gpu_window<backend::gl_linux_xcb>::on_event() {
+conveyor<data<schema::WindowEvents>> gpu_window<backend::gl_linux_xcb>::on_event() {
assert(window_);
return window_->on_event();
}