summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c++/window-opengl/gl_xcb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp
index 18ce1cf..42e8f5d 100644
--- a/c++/window-opengl/gl_xcb.cpp
+++ b/c++/window-opengl/gl_xcb.cpp
@@ -70,12 +70,12 @@ gl_context<gl::backend::linux_xcb>::~gl_context(){
if(context_){
/// @todo Check if this context is bound and only unbind if that is the case
// ::glXMakeContextCurrent(device_->get_xcb_display(), None, None, nullptr);
- ::glXMakeDestroyContext(device_->get_xcb_display(), context_);
+ ::glXDestroyContext(device_->get_xcb_display(), context_);
}
device_->flush();
}
-own<gl_window<gl::backnd::linux_xcb>> gl_context<gl::backend::linux_xcb>::create_window(const video_mode& vid_mode, std::string_view title_view){
+own<gl_window<gl::backend::linux_xcb>> gl_context<gl::backend::linux_xcb>::create_window(const video_mode& vid_mode, std::string_view title_view){
SAW_ASSERT(device_){
return nullptr;