- 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:
parent
0f0dc2c852
commit
8f535997f8
5 changed files with 14 additions and 66 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue