diff options
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 6 |
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(); } |