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