|
@@ -1291,7 +1291,7 @@ EGLSurface SDL_EGL_CreateSurface(SDL_VideoDevice *_this, SDL_Window *window, Nat
|
|
|
|
|
|
|
|
#ifdef EGL_KHR_gl_colorspace
|
|
#ifdef EGL_KHR_gl_colorspace
|
|
|
if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_gl_colorspace")) {
|
|
if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_gl_colorspace")) {
|
|
|
- const char *srgbhint = SDL_GetHint(SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE);
|
|
|
|
|
|
|
+ const char *srgbhint = SDL_GetHint(SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER);
|
|
|
if (srgbhint && *srgbhint) {
|
|
if (srgbhint && *srgbhint) {
|
|
|
if (SDL_strcmp(srgbhint, "skip") == 0) {
|
|
if (SDL_strcmp(srgbhint, "skip") == 0) {
|
|
|
// don't set an attribute at all.
|
|
// don't set an attribute at all.
|