video: Only set GL_FRAMEBUFFER_SRGB state if the hint requests it.

Reference Issue #14898.

(cherry picked from commit ead67481c0)
This commit is contained in:
Ryan C. Gordon 2026-02-13 14:14:40 -05:00
parent a849c4d361
commit 8f9dd75ead
No known key found for this signature in database
GPG key ID: FA148B892AB48044
2 changed files with 18 additions and 13 deletions

View file

@ -3025,6 +3025,10 @@ extern "C" {
* Note that some platforms cannot make this request at all, and on all
* platforms this request can be denied by the operating system.
*
* In addition to attempting to obtain the type of sRGB-capable OpenGL context
* requested by this hint, SDL will try to force the state of
* GL_FRAMEBUFFER_SRGB on the new context, if appropriate.
*
* The variable can be set to the following values:
*
* - "0": Force a request for an OpenGL context that is _not_ sRGB-capable.