summaryrefslogtreecommitdiff
path: root/c++/window-opengl/gl_xcb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/window-opengl/gl_xcb.cpp')
-rw-r--r--c++/window-opengl/gl_xcb.cpp2
1 files changed, 1 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_,