- remove all uses of builtin matrices.

This commit is contained in:
Christoph Oelckers 2014-07-13 23:13:40 +02:00
commit ce3653f6e1
6 changed files with 59 additions and 10 deletions

View file

@ -301,8 +301,10 @@ void FRenderState::Apply()
void FRenderState::ApplyMatrices()
{
glMatrixMode(GL_MODELVIEW);
glLoadMatrixf(mViewMatrix.get());
glMatrixMode(GL_PROJECTION);
glLoadMatrixf(mProjectionMatrix.get());
drawcalls.Clock();
if (GLRenderer->mShaderManager != NULL)
{
GLRenderer->mShaderManager->ApplyMatrices(&mProjectionMatrix, &mViewMatrix);
}
drawcalls.Unclock();
}