From d399b610ecc68632ae44c0e4874715ca549693aa Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 12 Oct 2026 23:11:10 +0300
Subject: [PATCH] kmsdrm: fix build after commit 69dd29eec
---
src/video/kmsdrm/SDL_kmsdrmopengles.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/kmsdrm/SDL_kmsdrmopengles.c b/src/video/kmsdrm/SDL_kmsdrmopengles.c
index d827a563bb1dd..62993f1bcb2d0 100644
--- a/src/video/kmsdrm/SDL_kmsdrmopengles.c
+++ b/src/video/kmsdrm/SDL_kmsdrmopengles.c
@@ -477,7 +477,7 @@ static bool KMSDRM_GLES_SwapWindowLegacy(SDL_VideoDevice *_this, SDL_Window *win
// so in this specific case just retry without the async flag. If it still fails after that, oh well.
if ((ret == -EINVAL) && (flip_flags & DRM_MODE_PAGE_FLIP_ASYNC)) {
flip_flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
- ret = KMSDRM_drmModePageFlip(viddata->drm_fd, dispdata->crtc->crtc_id, fb_info->fb_id, flip_flags, &windata->waiting_for_flip);
+ ret = KMSDRM_drmModePageFlip(viddata->drm_fd, dispdata->crtc.crtc->crtc_id, fb_info->fb_id, flip_flags, &windata->waiting_for_flip);
}
if (ret == 0) {