- add shader patching to allow running the engine with GLSL 1.2.

- made some initial preparations for the shader-less fallback path.
This commit is contained in:
Christoph Oelckers 2016-04-26 15:01:23 +02:00
commit f066457a48
8 changed files with 108 additions and 26 deletions

View file

@ -279,7 +279,14 @@ void FRenderState::Apply()
else mVertexBuffer->BindVBO();
mCurrentVertexBuffer = mVertexBuffer;
}
ApplyShader();
if (gl.compatibility > CMPT_GL2)
{
ApplyShader();
}
else
{
//ApplyFixedFunction();
}
}