From 5eaa4c982f8582122c15b259c9810c00498af6a8 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 19 Sep 2023 16:33:14 +0200 Subject: window-opengl: More proper call fixes --- c++/window-opengl/gl_xcb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c++/window-opengl/gl_xcb.cpp') 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::hide() { void gpu_window::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::title() const { void gpu_window::resize(size_t height, size_t width) { assert(window_); if (window_) { - window->resize(height, width); + window_->resize(height, width); } } -conveyor gpu_window::on_event() { +conveyor> gpu_window::on_event() { assert(window_); return window_->on_event(); } -- cgit v1.2.3