mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-04 01:10:13 +01:00
opengl: check for g_pHyprOpengl pointer (#9791)
restore the pointer check to avoid null ptr dereference on compositor destruction.
This commit is contained in:
parent
7374a023ef
commit
4a79eea6dc
1 changed files with 1 additions and 1 deletions
|
|
@ -3175,7 +3175,7 @@ CEGLSync::~CEGLSync() {
|
|||
if (sync == EGL_NO_SYNC_KHR)
|
||||
return;
|
||||
|
||||
if (g_pHyprOpenGL->m_sProc.eglDestroySyncKHR(g_pHyprOpenGL->m_pEglDisplay, sync) != EGL_TRUE)
|
||||
if (g_pHyprOpenGL && g_pHyprOpenGL->m_sProc.eglDestroySyncKHR(g_pHyprOpenGL->m_pEglDisplay, sync) != EGL_TRUE)
|
||||
Debug::log(ERR, "eglDestroySyncKHR failed");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue