DiligentCore
DiligentCore copied to clipboard
Properly handle non-sRGB default framebuffer in OpenGL backend
Right now GL_FRAMEBUFFER_SRGB
is set once during the engine initialization. As a result, this is always enabled for default framebuffer even when its format is not SRGB
OpenGL is a mess. GL_FRAMEBUFFER_SRGB
only affects rendering to SRGB framebuffers and enables linear->sRGB conversion when writing pixels to the framebuffer. This should always be enabled to be consistent with other backends.
This needs to be done for default framebuffer
You may want to update the Label as well.