From b2ead391b3559a7909e350edcf4ca21fd8010953 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Mar 2008 13:23:49 +0000 Subject: [PATCH] From Mathias Froehlich, "it appears to me that sun CC cannot use static functions from template functions. The attached change is required to make it compile with sun CC." --- src/osg/Geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 4193469e3..f10021f4d 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -2632,7 +2632,7 @@ void Geometry::accept(PrimitiveIndexFunctor& functor) const return; } -static unsigned int _computeNumberOfPrimitives(const osg::Geometry& geom) +unsigned int _computeNumberOfPrimitives(const osg::Geometry& geom) { unsigned int totalNumberOfPrimitives = 0; @@ -3790,6 +3790,7 @@ Geometry* osg::createTexturedQuadGeometry(const Vec3& corner,const Vec3& widthVe typedef DrawAttributeArrays_TTT_USI DrawAttributeArrays_T2N3V3_i; + typedef DrawAttributeArrays_TTT DrawAttributeArrays_T2C4V3; typedef DrawAttributeArrays_TTT DrawAttributeArrays_T2iC4V3; typedef DrawAttributeArrays_TTT DrawAttributeArrays_T2C4iV3;