Fixed warnings.

This commit is contained in:
Robert Osfield
2006-07-04 11:24:36 +00:00
parent 0170689c9d
commit c8aec2a07d
11 changed files with 108 additions and 105 deletions

View File

@@ -20,7 +20,7 @@ osg::Vec4 ColorPool::getColor(int indexIntensity) const
// bit 12 fixed intensity bit
bool fixedIntensity = (indexIntensity & 0x1000) ? true : false;
unsigned int index = (fixedIntensity) ? (indexIntensity & 0x0fff)+(4096>>7) : indexIntensity >> 7;
assert(index>=0 && index<size());
assert(index<size());
osg::Vec4 col = at(index);
if (!fixedIntensity)
{