- enable shader-less rendering. Still very incomplete, but at least the basics are working.

This commit is contained in:
Christoph Oelckers 2016-04-26 16:44:03 +02:00
commit eb27057853
5 changed files with 69 additions and 26 deletions

View file

@ -316,9 +316,12 @@ void FRenderState::ApplyMatrices()
void FRenderState::ApplyLightIndex(int index)
{
if (index > -1 && GLRenderer->mLights->GetBufferType() == GL_UNIFORM_BUFFER)
if (gl.lightmethod != LM_SOFTWARE)
{
index = GLRenderer->mLights->BindUBO(index);
if (index > -1 && GLRenderer->mLights->GetBufferType() == GL_UNIFORM_BUFFER)
{
index = GLRenderer->mLights->BindUBO(index);
}
activeShader->muLightIndex.Set(index);
}
activeShader->muLightIndex.Set(index);
}