From 0ff08a2978b62d9bd2da3a130f2e56f0fdf39733 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 20 Jul 2002 22:44:21 +0000 Subject: [PATCH] Added missing default values to State constructor. --- src/osg/State.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()