Fixed warnings

This commit is contained in:
Robert Osfield
2008-12-18 11:06:57 +00:00
parent 1cd6541bfd
commit 4ad20a413a
14 changed files with 64 additions and 47 deletions

View File

@@ -646,11 +646,11 @@ void DataOutputStream::writePackedFloatArray(const osg::FloatArray* a, float max
if (maxError>0.0f)
{
float byteError = 0.0f;
//float byteError = 0.0f;
float byteMultiplier = 255.0f/(maxValue-minValue);
float byteInvMultiplier = 1.0f/byteMultiplier;
float shortError = 0.0f;
//float shortError = 0.0f;
float shortMultiplier = 65535.0f/(maxValue-minValue);
float shortInvMultiplier = 1.0f/shortMultiplier;