- enable shader-less rendering. Still very incomplete, but at least the basics are working.
This commit is contained in:
parent
3b1500438d
commit
eb27057853
5 changed files with 69 additions and 26 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue