- enable core profile by default on GL 3.x.

After doing some profiling it was very obvious that this has better performance than client arrays. Persistent buffers are still better, though, especially for handling dynamic lights.
This commit is contained in:
Christoph Oelckers 2016-08-29 11:33:20 +02:00
commit 8f535997f8
5 changed files with 14 additions and 66 deletions

View file

@ -130,7 +130,7 @@ void FGLRenderer::Initialize(int width, int height)
m2DDrawer = new F2DDrawer;
// Only needed for the core profile, because someone decided it was a good idea to remove the default VAO.
if (gl.version >= 4.0)
if (gl.buffermethod != BM_CLIENTARRAY)
{
glGenVertexArrays(1, &mVAOID);
glBindVertexArray(mVAOID);