Apparently typos and redundantly setting uniforms can totally ruin rendering :D

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 11 years ago
parent 5fbfe7b17f
commit 3c99323ada

@ -1161,16 +1161,10 @@ void CDriverGL3::setupSpecularPass(uint pass)
setUniform1i( sl1, 1 ); setUniform1i( sl1, 1 );
} }
int mvl = currentProgram->getUniformIndex( IProgramObject::MVMatrix );
if( mvl != -1 )
{
setUniformMatrix4fv( mvl, 1, false, _ModelViewMatrix.get() );
}
int tml = currentProgram->getUniformIndex( IProgramObject::TexMatrix0 ); int tml = currentProgram->getUniformIndex( IProgramObject::TexMatrix0 );
if( tml != -1 ) if( tml != -1 )
{ {
setUniformMatrix4fv( mvl, 1, false, _UserTexMat[ 1 ].get() ); setUniformMatrix4fv( tml, 1, false, _UserTexMat[ 1 ].get() );
} }
#endif #endif

Loading…
Cancel
Save