- remove all uses of builtin matrices.
This commit is contained in:
parent
2214c0ac06
commit
ce3653f6e1
6 changed files with 59 additions and 10 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue