From 665865eda294a2e03aaa9def1c8b6045cd0e406d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 19 Nov 2021 09:58:13 -0800
Subject: [PATCH] If the hardware is in an error state, the final page flip may
not come.
We should either put a timeout on the wait when destroying the window, or skip it entirely.
---
src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 95198fb49e..9b71609187 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -869,7 +869,7 @@ KMSDRM_DestroySurfaces(_THIS, SDL_Window *window)
/**********************************************/
/* Wait for last issued pageflip to complete. */
/**********************************************/
- KMSDRM_WaitPageflip(_this, windata);
+ /*KMSDRM_WaitPageflip(_this, windata);*/
/***********************************************************************/
/* Restore the original CRTC configuration: configue the crtc with the */