From a48d7e46fdb17b968960c9760209324322f22979 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 22 Aug 2023 18:57:36 +0200 Subject: c++,window-opengl: Fixing errors in ogl --- c++/window-opengl/gl_xcb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c++/window-opengl') 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_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_context::create_window(const video_mode& vid_mode, std::string_view title_view){ +own> gl_context::create_window(const video_mode& vid_mode, std::string_view title_view){ SAW_ASSERT(device_){ return nullptr; -- cgit v1.2.3