Commit a6d182d32638496e7f7f7409a04ce37d5f7bdee5

Manuel Alfayate Corchete 2020-09-11T23:47:26

kmsdrm: no need to reconnect/reactivate things in SwapWindowDoubleBuffered().

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/video/kmsdrm/SDL_kmsdrmopengles.c b/src/video/kmsdrm/SDL_kmsdrmopengles.c
index 72eb370..a536b0a 100644
--- a/src/video/kmsdrm/SDL_kmsdrmopengles.c
+++ b/src/video/kmsdrm/SDL_kmsdrmopengles.c
@@ -297,15 +297,6 @@ KMSDRM_GLES_SwapWindowDoubleBuffered(_THIS, SDL_Window * window)
         return SDL_SetError("Failed to request prop changes for setting plane buffer and CRTC");
     }
 
-    /* Re-connect the connector to the CRTC, and activate the CRTC again.
-       Just in case we come here after a DestroySurfaces() call. */
-    if (add_connector_property(dispdata->atomic_req, dispdata->connector , "CRTC_ID",
-            dispdata->crtc->crtc->crtc_id) < 0)
-        return SDL_SetError("Failed to set CONNECTOR prop CRTC_ID to zero before buffer destruction");
-
-    if (add_crtc_property(dispdata->atomic_req, dispdata->crtc , "ACTIVE", 1) < 0)
-        return SDL_SetError("Failed to set CRTC prop ACTIVE to zero before buffer destruction");
-
     /* Issue the one and only atomic commit where all changes will be requested!. 
        Blocking for double buffering: won't return until completed. */
     if (drm_atomic_commit(_this, SDL_TRUE)) {