From 39052a7e21c0cc4b2b29fb2019fdbb4dc8db8d26 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 18 Feb 2026 15:10:37 -0500 Subject: [PATCH] Experiment test --- src/sdl/i_video.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 3d84e609d..a0fe73c0d 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -198,6 +198,24 @@ static bool Impl_RenderContextCreate(void) { SDL_GL_ResetAttributes(); + if (M_CheckParm("-skipsrgb")) + { + CONS_Printf("Skipping srgb SDL call\n"); + SDL_SetHint("SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER", "skip"); + } + else if (M_CheckParm("-forcergb")) + { + CONS_Printf("Forcing rgb SDL call\n"); + SDL_SetHint("SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER", "0"); + //SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 0); + } + else if (M_CheckParm("-forcesrgb")) + { + CONS_Printf("Forcing srgb SDL call\n"); + SDL_SetHint("SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER", "1"); + //SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 1); + } + if (rendermode != render_opengl) { if (!renderer)