diff --git a/src/osg/State.cpp b/src/osg/State.cpp index affc361de..7da8cde31 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -11,8 +11,11 @@ State::State() { _contextID = 0; _identity = new osg::Matrix(); // default Matrix constructs to identity. - _modelView = _identity; _projection = _identity; + _modelView = _identity; + + _currentActiveTextureUnit=0; + _currentClientActiveTextureUnit=0; } State::~State()