method : drawall
lines: from 1325 to 1334
patch: replace lines with provided code.
"driver" and "Driver" are just the same Pointer (and Driver is also checked at the beginning of the method) so i think there is no reason
for keeping it duplicated. Maybe the intended code was the following:
Code: Select all
Driver->setMaterial(video::SMaterial());
Driver->setTransform ( video::ETS_PROJECTION, core::IdentityMatrix );
Driver->setTransform ( video::ETS_VIEW, core::IdentityMatrix );
Driver->setTransform ( video::ETS_WORLD, core::IdentityMatrix );
for (i=video::ETS_COUNT-1; i>=video::ETS_TEXTURE_0; --i)
Driver->setTransform ( (video::E_TRANSFORMATION_STATE)i, core::IdentityMatrix );