Fixed computeFastPathsUsed() so that it includes a check for the presence

of _vertexIndices and disables fast paths in this case.
This commit is contained in:
Robert Osfield 2003-08-04 22:03:55 +00:00
parent dd90d924d2
commit f4d093df36

View File

@ -668,7 +668,8 @@ bool Geometry::computeFastPathsUsed()
// check to see if fast path can be used.
//
_fastPath = true;
if (_normalBinding==BIND_PER_PRIMITIVE || (_normalBinding==BIND_PER_VERTEX && _normalIndices.valid())) _fastPath = false;
if (_vertexIndices.valid()) _fastPath = false;
else if (_normalBinding==BIND_PER_PRIMITIVE || (_normalBinding==BIND_PER_VERTEX && _normalIndices.valid())) _fastPath = false;
else if (_colorBinding==BIND_PER_PRIMITIVE || (_colorBinding==BIND_PER_VERTEX && _colorIndices.valid())) _fastPath = false;
else if (_secondaryColorBinding==BIND_PER_PRIMITIVE || (_secondaryColorBinding==BIND_PER_VERTEX && _secondaryColorIndices.valid())) _fastPath = false;
else if (_fogCoordBinding==BIND_PER_PRIMITIVE || (_fogCoordBinding==BIND_PER_VERTEX && _fogCoordIndices.valid())) _fastPath = false;