From 02d920c930ae916aeafe0bed94a9444bdab0c4dc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 18 Sep 2002 16:10:42 +0000 Subject: [PATCH] Fix the sceondary color code. --- src/osg/Geometry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 698f72b64..9f62e42ec 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -361,15 +361,15 @@ void Geometry::drawImmediateMode(State& state) switch(secondaryColorType) { case(Array::UByte4ArrayType): - s_glSecondaryColor3ubv(reinterpret_cast(colorPointer)); + s_glSecondaryColor3ubv(reinterpret_cast(secondaryColorPointer)); break; case(Array::Vec3ArrayType): - s_glSecondaryColor3fv(reinterpret_cast(colorPointer)); + s_glSecondaryColor3fv(reinterpret_cast(secondaryColorPointer)); break; default: break; } - colorPointer += colorStride; + secondaryColorPointer += secondaryColorStride; } if (fogCoordBinding==BIND_PER_PRIMITIVE)