mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
gl renderer: Fixed BGFX_RESET_MAXANISOTROPY change (#3494)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user