- remove all uses of builtin matrix manipulation. Only glLoadMatrix for view and projection matrix are left.
This commit is contained in:
parent
dbb05c5f33
commit
2214c0ac06
9 changed files with 79 additions and 122 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue