SDL: Disable HDR on gamescope

From d84bd0315179466c13fefe95e60210deaef2d48a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 9 Oct 2026 12:55:56 -0700
Subject: [PATCH] Disable HDR on gamescope

The gamescope SDR white level is actually dynamic based on display settings and ambient light. We don't have access to that info, so we'll disable this for now.
---
 src/video/x11/SDL_x11modes.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c
index b79527cdd6fde..f3557cf5542fa 100644
--- a/src/video/x11/SDL_x11modes.c
+++ b/src/video/x11/SDL_x11modes.c
@@ -713,7 +713,9 @@ static bool X11_FillXRandRDisplayInfo(SDL_VideoDevice *_this, Display *dpy, int
     SDL_strlcpy(displaydata->connector_name, display_name, sizeof(displaydata->connector_name));
 
     bool gamescope = false;
-    MonitorInfo *info = GetMonitorInfo(dpy, screen, outputid, &gamescope);
+    // The gamescope SDR white level is actually dynamic based on display settings and ambient light
+    // We don't have access to that info, so we'll disable this for now.
+    MonitorInfo *info = NULL; //GetMonitorInfo(dpy, screen, outputid, &gamescope);
 
     SetXRandRModeInfo(dpy, res, output_crtc, modeID, &mode);
     SetXRandRDisplayName(info, display_name, display_name_size, display_mm_width, display_mm_height);