diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-09-19 16:29:41 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-09-19 16:29:41 +0200 |
commit | 4de4b32c2d21aa4a97efaec9c73f3838abdabe0b (patch) | |
tree | 0ea006be8cb1c8d1a66f0a2390795e37bdc74f06 | |
parent | ca990e36ffa21bb275e0b55fa783c28030b357fe (diff) |
window,window-opengl: Fixing up more private problems
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 2 | ||||
-rw-r--r-- | c++/window-opengl/gl_xcb.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp index 26eb8cd..3bcd21a 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -208,7 +208,7 @@ gpu_window<backend::gl_linux_xcb>::~gpu_window() { } void gpu_window<backend::gl_linux_xcb>::bind() { - assert(window_ && context_->device && context_->device_->get_xcb_display()); + assert(window_ && context_->device_ && context_->device_->get_xcb_display()); if (window) { if (context_->device_ && context_->device_->get_xcb_display()) { ::glXMakeContextCurrent(context_->device_->get_xcb_display(), glx_window_, diff --git a/c++/window-opengl/gl_xcb.h b/c++/window-opengl/gl_xcb.h index f7f5d6a..0d84662 100644 --- a/c++/window-opengl/gl_xcb.h +++ b/c++/window-opengl/gl_xcb.h @@ -29,6 +29,8 @@ private: int visual_id_; GLXContext context_; GLXFBConfig fb_config_; + + friend class gpu_window<backend::gl_linux_xcb>; public: gpu_context(const glx_library_extensions&, own<device<backend::linux_xcb>>, int, GLXContext, GLXFBConfig); ~gpu_context(); |