GLRenderer: disable global VAO, since VAO is now supported

This commit is contained in:
Kirill Vainer 2015-09-12 17:51:42 -04:00
parent 3d2a9b83e9
commit 28e2b5650c

View File

@ -511,9 +511,9 @@ public class GLRenderer implements Renderer {
if (caps.contains(Caps.CoreProfile)) { if (caps.contains(Caps.CoreProfile)) {
// Core Profile requires VAO to be bound. // Core Profile requires VAO to be bound.
gl3.glGenVertexArrays(intBuf16); // gl3.glGenVertexArrays(intBuf16);
int vaoId = intBuf16.get(0); // int vaoId = intBuf16.get(0);
gl3.glBindVertexArray(vaoId); // gl3.glBindVertexArray(vaoId);
} }
if (gl2 != null) { if (gl2 != null) {
gl2.glEnable(GL2.GL_VERTEX_PROGRAM_POINT_SIZE); gl2.glEnable(GL2.GL_VERTEX_PROGRAM_POINT_SIZE);