| Summary: | EGL: Request sRGB framebuffer in correct place. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Deve <deveee> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | deveee |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: | Request sRGB framebuffer in correct place | ||
Added, thanks! https://hg.libsdl.org/SDL/rev/a01af1a724b3 |
Created attachment 3142 [details] Request sRGB framebuffer in correct place SDL2 asks for sRGB framebuffer in wrong place when using EGL. The EGL_GL_COLORSPACE_KHR is an attribute for eglCreate*Surface. As written in EGL_KHR_gl_colorspace documentation: Accepted as an attribute name by eglCreateWindowSurface, eglCreatePbufferSurface and eglCreatePixmapSurface EGL_GL_COLORSPACE_KHR 0x309D Accepted as attribute values for EGL_GL_COLORSPACE_KHR by eglCreateWindowSurface, eglCreatePbufferSurface and eglCreatePixmapSurface EGL_GL_COLORSPACE_SRGB_KHR 0x3089 EGL_GL_COLORSPACE_LINEAR_KHR 0x308A I'm sending a patch that solves the issue.