mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
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:
parent
a849c4d361
commit
8f9dd75ead
2 changed files with 18 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue