internal: various improvements to avoid crashes on exit
This commit is contained in:
parent
13b4c6de86
commit
03c6f4506a
6 changed files with 18 additions and 1 deletions
|
|
@ -5,6 +5,9 @@
|
|||
#include <dlfcn.h>
|
||||
|
||||
CRenderbuffer::~CRenderbuffer() {
|
||||
if (!g_pCompositor)
|
||||
return;
|
||||
|
||||
if (eglGetCurrentContext() != wlr_egl_get_context(g_pCompositor->m_sWLREGL))
|
||||
eglMakeCurrent(wlr_egl_get_display(g_pCompositor->m_sWLREGL), EGL_NO_SURFACE, EGL_NO_SURFACE, wlr_egl_get_context(g_pCompositor->m_sWLREGL));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue