From c4e0a433f029c3e9b3db7e76affd7322f5f37200 Mon Sep 17 00:00:00 2001 From: attilaz Date: Thu, 13 Nov 2025 15:38:57 +0100 Subject: [PATCH] gl renderer: Fixed BGFX_RESET_MAXANISOTROPY change (#3494) --- src/renderer_gl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 3746c35c7..f2554e6dc 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -3757,10 +3757,16 @@ 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) {