diff --git a/simgear/canvas/Canvas.cxx b/simgear/canvas/Canvas.cxx index ca604077..c2ef349f 100644 --- a/simgear/canvas/Canvas.cxx +++ b/simgear/canvas/Canvas.cxx @@ -405,6 +405,13 @@ namespace canvas _sampling_dirty = false; _render_dirty = true; } + + if( _anisotropy_dirty ) + { + _texture.setMaxAnisotropy( _node->getFloatValue("anisotropy") ); + _anisotropy_dirty = false; + _render_dirty = true; + } while( !_dirty_placements.empty() ) { @@ -698,7 +705,7 @@ namespace canvas } else if( name == "anisotropy" ) { - _texture.setMaxAnisotropy( node->getFloatValue() ); + _anisotropy_dirty = true; } else if( name == "additive-blend" ) { diff --git a/simgear/canvas/Canvas.hxx b/simgear/canvas/Canvas.hxx index 10b7403c..469d77e8 100644 --- a/simgear/canvas/Canvas.hxx +++ b/simgear/canvas/Canvas.hxx @@ -238,6 +238,7 @@ namespace canvas PropertyObject _status_msg; bool _sampling_dirty {false}, + _anisotropy_dirty {false}, _render_dirty {true}, _visible {true};