mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-21 20:28:08 +02:00
lockSurface: discard frameCallback when eglSwapBuffers fails
This commit is contained in:
parent
84aa55d223
commit
8e329e51b7
1 changed files with 5 additions and 1 deletions
|
|
@ -152,7 +152,11 @@ void CSessionLockSurface::render() {
|
|||
onCallback();
|
||||
});
|
||||
|
||||
eglSwapBuffers(g_pEGL->eglDisplay, eglSurface);
|
||||
if (eglSwapBuffers(g_pEGL->eglDisplay, eglSurface) != EGL_TRUE) {
|
||||
frameCallback.reset();
|
||||
needsFrame = true;
|
||||
return;
|
||||
}
|
||||
|
||||
needsFrame = FEEDBACK.needsFrame || g_pAnimationManager->shouldTickForNext();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue