Closed kircher1 closed 7 years ago
Sorry, ANGLE doesn't support these EGL attributes. While ANGLE fully supports OpenGL ES2 and 3, its EGL support is a bit patchy in places.
You can see a superset of the EGL config attributes that ANGLE supports in this file (see Display::getConfigAttrib). Note that not all of these attributes are supported by ANGLE's D3D11 backend.
ANGLE does support sRGB textures in OpenGL ES 3 (and 2 via an extension); see these tests for an example.
Hope this helps, Austin
Got it, thanks for the info. I have been using sRGB textures with success. To work around the lack of sRGB back buffer/render targets, the conversion from linear to sRGB is being performed at the end of the fragment shader(s). It's not necessarily perfect, but works well enough.
I wanted to point out though that an sRGB render target (i.e. color attachment to a frame buffer) falls more in the realm of GL than EGL, and it doesn't appear that works either.
Overall, any idea if sRGB render target/back buffer support is on the back log? If I remember correctly sRGB render targets are pretty easy to work with in D3D11 unless MSAA is involved. In that case, I recall MSDN saying that an extra full screen pass was required to copy sRGB data to the back buffer or something. Didn't seem trivial.
We (at Microsoft) don't intend to add further sRGB support to ANGLE in the near future, but other contributors may be planning it! Feel free to ask over on the master ANGLE project discussion board.
I'm closing this issue now since it's been inactive for a while. Please feel free to reactivate it if you have further questions!
Thanks, Austin
Initializing EGL with an sRGB backbuffer does not fail, but it also has no affect on the output image. Are sRGB back buffers supported?
EGL initialization configuration below... Note, I'm using an ES 3 context.