- remove all uses of builtin matrix manipulation. Only glLoadMatrix for view and projection matrix are left.

This commit is contained in:
Christoph Oelckers 2014-07-13 22:37:34 +02:00
commit 2214c0ac06
9 changed files with 79 additions and 122 deletions

View file

@ -57,6 +57,7 @@ CVAR(Bool, gl_direct_state_change, true, 0)
static VSMatrix identityMatrix(1);
TArray<VSMatrix> gl_MatrixStack;
//==========================================================================
//
@ -296,3 +297,12 @@ void FRenderState::Apply()
ApplyShader();
}
void FRenderState::ApplyMatrices()
{
glMatrixMode(GL_MODELVIEW);
glLoadMatrixf(mViewMatrix.get());
glMatrixMode(GL_PROJECTION);
glLoadMatrixf(mProjectionMatrix.get());
}