GLRenderer: clear VBO bind state after bounding VAO
This commit is contained in:
parent
fc680ea121
commit
3a00aff886
@ -2689,6 +2689,10 @@ public class GLRenderer implements Renderer {
|
||||
private void renderMeshDefault(Mesh mesh, int lod, int count, VertexBuffer[] instanceData) {
|
||||
setVertexArrayObject(mesh);
|
||||
|
||||
// VAO clears current bound VBO automatically
|
||||
context.boundElementArrayVBO = 0;
|
||||
context.boundArrayVBO = 0;
|
||||
|
||||
VertexBuffer indices = getIndexBuffer(mesh, lod);
|
||||
if (mesh.isUpdateNeeded()) {
|
||||
setupVertexBuffers(mesh, instanceData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user