From eca5797ae414e1d1d0ad3e97b6b2c7eb8fbda0c3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 11 Jul 2002 11:33:06 +0000 Subject: [PATCH] Fixed bug in disabledTexCoordPointer where a '>' was being used where it should have been a '>='. --- include/osg/State | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/State b/include/osg/State index c006719cb..8815a0071 100644 --- a/include/osg/State +++ b/include/osg/State @@ -338,7 +338,7 @@ class SG_EXPORT State : public Referenced { if (setClientActiveTextureUnit(unit)) { - if ( unit > _texCoordArrayList.size()) _texCoordArrayList.resize(unit+1); + if ( unit >= _texCoordArrayList.size()) _texCoordArrayList.resize(unit+1); EnabledArrayPair& eap = _texCoordArrayList[unit]; if (eap._enabled)