From 230286447ebf5cb52e44af31c000799ec17df094 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 3 Feb 2026 11:13:33 -0800
Subject: [PATCH] Fixed Raspberry Pi build
---
src/video/kmsdrm/SDL_kmsdrmopengles.c | 6 +++---
src/video/raspberry/SDL_rpiopengles.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/video/kmsdrm/SDL_kmsdrmopengles.c b/src/video/kmsdrm/SDL_kmsdrmopengles.c
index 47fcf8ab5c276..8116dfb37308e 100644
--- a/src/video/kmsdrm/SDL_kmsdrmopengles.c
+++ b/src/video/kmsdrm/SDL_kmsdrmopengles.c
@@ -55,9 +55,9 @@ void KMSDRM_GLES_SetDefaultProfileConfig(SDL_VideoDevice *_this)
definitely a Pi device) or with the ROCKCHIP video driver
(it's a ROCKCHIP device), default to GLES2. */
#if defined(SDL_VIDEO_DRIVER_RPI) || defined(SDL_VIDEO_DRIVER_ROCKCHIP)
- _this->gl_config.mask = SDL_GL_CONTEXT_PROFILE_ES;
- _this->gl_config.major = 2;
- _this->gl_config.minor = 0;
+ _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
+ _this->gl_config.major_version = 2;
+ _this->gl_config.minor_version = 0;
#endif
_this->gl_config.egl_platform = EGL_PLATFORM_GBM_MESA;
diff --git a/src/video/raspberry/SDL_rpiopengles.c b/src/video/raspberry/SDL_rpiopengles.c
index 23fec4ca2c39a..3af8435274402 100644
--- a/src/video/raspberry/SDL_rpiopengles.c
+++ b/src/video/raspberry/SDL_rpiopengles.c
@@ -29,9 +29,9 @@
void RPI_GLES_SetDefaultProfileConfig(SDL_VideoDevice *_this)
{
- _this->gl_config.mask = SDL_GL_CONTEXT_PROFILE_ES;
- _this->gl_config.major = 2;
- _this->gl_config.minor = 0;
+ _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
+ _this->gl_config.major_version = 2;
+ _this->gl_config.minor_version = 0;
}
bool RPI_GLES_LoadLibrary(SDL_VideoDevice *_this, const char *path)