gl renderer: Fixed BGFX_RESET_MAXANISOTROPY change (#3494)

This commit is contained in:
attilaz
2025-11-13 15:38:57 +01:00
committed by GitHub
parent 1aee4faf0f
commit c4e0a433f0

View File

@@ -3757,11 +3757,17 @@ namespace bgfx { namespace gl
void updateResolution(const Resolution& _resolution)
{
m_maxAnisotropy = !!(_resolution.reset & BGFX_RESET_MAXANISOTROPY)
float maxAnisotropy = !!(_resolution.reset & BGFX_RESET_MAXANISOTROPY)
? m_maxAnisotropyDefault
: 0.0f
;
if (m_maxAnisotropy != maxAnisotropy)
{
m_maxAnisotropy = maxAnisotropy;
invalidateCache();
}
if (s_extension[Extension::ARB_depth_clamp].m_supported)
{
if (!!(_resolution.reset & BGFX_RESET_DEPTH_CLAMP) )