Added BGFX_RESET_SRGB_BACKBUFFER to GL
This commit is contained in:
parent
5ca8208fdb
commit
b72d980a8a
@ -2481,6 +2481,11 @@ namespace bgfx { namespace gl
|
||||
if (!isValid(_fbh) )
|
||||
{
|
||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_msaaBackBufferFbo) );
|
||||
|
||||
if (0 != (m_resolution.m_flags & BGFX_RESET_SRGB_BACKBUFFER))
|
||||
GL_CHECK(glEnable(GL_FRAMEBUFFER_SRGB));
|
||||
else
|
||||
GL_CHECK(glDisable(GL_FRAMEBUFFER_SRGB));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user