Fixes bug with transparent materials

We need to reset to the default (unset) material when we start to
render transparent meshes because there is no guarantee that the
CurrentMaterial is not the same as the previous pass - which will not
work for transparent materials.