mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Merge pull request #588 from xMyran/master
Added BGFX_RESET_SRGB_BACKBUFFER to GL
This commit is contained in:
commit
987ac7c59b
1 changed files with 9 additions and 0 deletions
|
@ -2481,6 +2481,15 @@ namespace bgfx { namespace gl
|
||||||
if (!isValid(_fbh) )
|
if (!isValid(_fbh) )
|
||||||
{
|
{
|
||||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_msaaBackBufferFbo) );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue