Replace gluProjectf/gluUnprojectf with own versions. Also changed gGLModelView/gGLProjection and other related matrices to LLMatrix4a.
This commit is contained in:
@@ -373,11 +373,7 @@ void LLDrawPoolBump::bindCubeMap(LLGLSLShader* shader, S32 shader_level, S32& di
|
||||
{
|
||||
if (!invisible && shader )
|
||||
{
|
||||
LLMatrix4 mat;
|
||||
mat.initRows(LLVector4(gGLModelView+0),
|
||||
LLVector4(gGLModelView+4),
|
||||
LLVector4(gGLModelView+8),
|
||||
LLVector4(gGLModelView+12));
|
||||
LLMatrix4 mat(gGLModelView.getF32ptr());
|
||||
LLVector3 vec = LLVector3(gShinyOrigin) * mat;
|
||||
LLVector4 vec4(vec, gShinyOrigin.mV[3]);
|
||||
shader->uniform4fv(LLViewerShaderMgr::SHINY_ORIGIN, 1, vec4.mV);
|
||||
@@ -521,11 +517,7 @@ void LLDrawPoolBump::beginFullbrightShiny()
|
||||
LLCubeMap* cube_map = gSky.mVOSkyp ? gSky.mVOSkyp->getCubeMap() : NULL;
|
||||
if( cube_map )
|
||||
{
|
||||
LLMatrix4 mat;
|
||||
mat.initRows(LLVector4(gGLModelView+0),
|
||||
LLVector4(gGLModelView+4),
|
||||
LLVector4(gGLModelView+8),
|
||||
LLVector4(gGLModelView+12));
|
||||
LLMatrix4 mat(gGLModelView.getF32ptr());
|
||||
shader->bind();
|
||||
LLVector3 vec = LLVector3(gShinyOrigin) * mat;
|
||||
LLVector4 vec4(vec, gShinyOrigin.mV[3]);
|
||||
|
||||
Reference in New Issue
Block a user