Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGLException: Cannot use offsets when Array Buffer Object is disabled #3

Closed
tigerss opened this issue Mar 22, 2015 · 2 comments
Closed

Comments

@tigerss
Copy link

tigerss commented Mar 22, 2015

Running on Linux desktop gives me this error when rendering a sign screen:

Exception in thread "LWJGL Application" org.lwjgl.opengl.OpenGLException: Cannot use offsets when Array Buffer Object is disabled
    at org.lwjgl.opengl.GLChecks.ensureArrayVBOenabled(GLChecks.java:77)
    at org.lwjgl.opengl.GL20.glVertexAttribPointer(GL20.java:892)
    at com.badlogic.gdx.backends.lwjgl.LwjglGL20.glVertexAttribPointer(LwjglGL20.java:847)
    at com.badlogic.gdx.graphics.glutils.ShaderProgram.setVertexAttribute(ShaderProgram.java:662)
    at com.badlogic.gdx.graphics.glutils.VertexBufferObjectWithVAO.bindAttributes(VertexBufferObjectWithVAO.java:171)
    at com.badlogic.gdx.graphics.glutils.VertexBufferObjectWithVAO.bind(VertexBufferObjectWithVAO.java:147)
    at com.badlogic.gdx.graphics.Mesh.bind(Mesh.java:380)
    at com.badlogic.gdx.graphics.Mesh.bind(Mesh.java:371)
    at com.badlogic.gdx.graphics.Mesh.render(Mesh.java:479)
    at com.badlogic.gdx.graphics.Mesh.render(Mesh.java:449)
    at com.badlogic.gdx.graphics.g2d.SpriteBatch.flush(SpriteBatch.java:972)
    at com.badlogic.gdx.graphics.g2d.SpriteBatch.end(SpriteBatch.java:180)
    at com.mojang.metagun.screen.GameScreen.render(GameScreen.java:81)
    at com.mojang.metagun.screen.SignReadScreen.render(SignReadScreen.java:44)
    at com.mojang.metagun.Metagun.render(Metagun.java:57)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:214)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
@xoppa
Copy link
Member

xoppa commented Mar 22, 2015

That's because you're using nightly of libgdx (or source). Try to use latest release instead.

@tigerss
Copy link
Author

tigerss commented Mar 24, 2015

Ok, I changed "gdxVersion" to "json.libgdxRelease" in build.gradle, thanks!

@tigerss tigerss closed this as completed Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants