mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-18 11:04:49 +00:00
render: OpenGL and GLES2 should explicitly request a not-sRGB-capable context.
Reference Issue #14898.
This commit is contained in:
@@ -2394,6 +2394,7 @@ static bool GLES2_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL
|
||||
renderer->name = GLES2_RenderDriver.name;
|
||||
|
||||
// Create an OpenGL ES 2.0 context
|
||||
SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 0);
|
||||
data->context = SDL_GL_CreateContext(window);
|
||||
if (!data->context) {
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user