diff --git a/src/Magnum/Platform/WindowlessGlxApplication.cpp b/src/Magnum/Platform/WindowlessGlxApplication.cpp index ca7010224..ba0e5fbeb 100644 --- a/src/Magnum/Platform/WindowlessGlxApplication.cpp +++ b/src/Magnum/Platform/WindowlessGlxApplication.cpp @@ -135,6 +135,7 @@ WindowlessGlxApplication::~WindowlessGlxApplication() { _context.reset(); glXMakeCurrent(_display, None, nullptr); + glXDestroyPbuffer(_display, _pbuffer); glXDestroyContext(_display, _glContext); }