- better rebind the active shader after updating the matrices.

This commit is contained in:
Christoph Oelckers 2014-08-02 11:59:04 +02:00
parent b2860a1d63
commit e35fefdc06
1 changed files with 1 additions and 0 deletions

View File

@ -520,6 +520,7 @@ void FShaderManager::ApplyMatrices(VSMatrix *proj, VSMatrix *view)
{ {
mEffectShaders[i]->ApplyMatrices(proj, view); mEffectShaders[i]->ApplyMatrices(proj, view);
} }
if (mActiveShader != NULL) mActiveShader->Bind();
} }
//========================================================================== //==========================================================================