- updated gl_interface to deal with older GL versions.
- added the framework for allowing multipass textured dynamic lights again.
This commit is contained in:
parent
8b5c741358
commit
090d13b915
8 changed files with 151 additions and 33 deletions
|
|
@ -309,7 +309,7 @@ void FRenderState::ApplyMatrices()
|
|||
|
||||
void FRenderState::ApplyLightIndex(int index)
|
||||
{
|
||||
if (GLRenderer->mLights->GetBufferType() == GL_UNIFORM_BUFFER && index > -1)
|
||||
if (index > -1 && GLRenderer->mLights->GetBufferType() == GL_UNIFORM_BUFFER)
|
||||
{
|
||||
index = GLRenderer->mLights->BindUBO(index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue