Trivial cleanup of removal of translation component from transformation matrix when drawing cubemaps.

This commit is contained in:
Shyotl
2015-07-23 01:30:31 -05:00
parent b2065b43a5
commit 3fc035f568

View File

@@ -266,14 +266,8 @@ void LLCubeMap::setMatrix(S32 stage)
gGL.getTexUnit(stage)->activate();
}
LLVector3 x(gGLModelView.getRow<0>().getF32ptr());
LLVector3 y(gGLModelView.getRow<1>().getF32ptr());
LLVector3 z(gGLModelView.getRow<2>().getF32ptr());
LLMatrix3 mat3;
mat3.setRows(x,y,z);
LLMatrix4a trans;
trans.loadu(mat3);
LLMatrix4a trans(gGLModelView);
trans.setRow<3>(LLVector4a::getZero());
trans.transpose();
gGL.matrixMode(LLRender::MM_TEXTURE);