diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-22 18:57:36 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-22 18:57:36 +0200 |
commit | a48d7e46fdb17b968960c9760209324322f22979 (patch) | |
tree | 670d626ef8dfe6cd425cfade5994ad8b59f745ab /c++/window-opengl | |
parent | 27c66aeb20a3338f185e0df172bc11e837a30a93 (diff) |
c++,window-opengl: Fixing errors in ogl
Diffstat (limited to 'c++/window-opengl')
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 4 |
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; |