GL: Fixed main back buffer sRGB state with MSAA. (#3987)

This commit is contained in:
Branimir Karadžić
2026-09-17 21:04:27 -07:00
committed by GitHub
parent 3ca5a63428
commit ca8e4528a2

View File

@@ -4141,7 +4141,8 @@ namespace bgfx { namespace gl
if (m_srgbWriteControlSupport)
{
if (0 == m_currentFbo)
if (0 == m_currentFbo
|| !isValid(_fbh) )
{
const uint32_t surfaceFlags = isValid(_fbh)
? m_frameBuffers[_fbh.idx].m_desc.flags