- removed most of the specific options for legacy hardware and consolidated them in one variable (does not work yet.)

This commit is contained in:
Christoph Oelckers 2016-09-01 11:52:52 +02:00
commit 3389a5a74e
27 changed files with 171 additions and 349 deletions

View file

@ -314,7 +314,7 @@ void FRenderState::Apply()
else mVertexBuffer->BindVBO();
mCurrentVertexBuffer = mVertexBuffer;
}
if (gl.glslversion > 0)
if (!gl.legacyMode)
{
ApplyShader();
}
@ -351,7 +351,7 @@ void FRenderState::ApplyMatrices()
void FRenderState::ApplyLightIndex(int index)
{
if (gl.lightmethod != LM_SOFTWARE)
if (!gl.legacyMode)
{
if (index > -1 && GLRenderer->mLights->GetBufferType() == GL_UNIFORM_BUFFER)
{