From 9f33816dc0cb09febb454ff4f3ba38467f6d0618 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 19 Sep 2023 16:31:28 +0200 Subject: window-opengl: Fixing up more badly named calls --- c++/window-opengl/gl_xcb.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 3bcd21a..a670589 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -201,15 +201,15 @@ gpu_window::gpu_window(own &&win, gpu_context : window_{std::move(win)}, context_{&ctx}, glx_window_handle_{glx_win} {} gpu_window::~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::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::bind() { void gpu_window::show() { assert(window_); if (window_) { - window->show(); + window_->show(); } } void gpu_window::hide() { assert(window_); if (window_) { - window->hide(); + window_->hide(); } } -- cgit v1.2.3