Project not working with JOGL 2.0.2 current release...
I'm working on a 3D renderer and everything worked fine with the older version of JOGL (it says version 2.0 on the ReadMe), then recently I used the current release and I'm now getting a GLException saying "element vertex_buffer_object must be disabled to call this method." I'm sure I've encountered this exception before and I was able to fix it with a call to gl.glBindBuffer(GL4.GL_ELEMENT_ARRAY_BUFFER, 0) before drawing but now the problem is persistent. Everything works fine when I run a test on the older JOGL using the same code, so now I'm not sure where the problem lies. I've already spent an entire day scrounging the web for information and still can't fix the problem so any help would be much appreciated. Here's how the code looks like:
//vao and vbos setup
int vao = new int;
gl.glGenVertexArrays(1, vao, 0);