Missed error from dev -> next merge

- Need to restore element array buffer state too to avoid segfault in
  instancing.
This commit is contained in:
Jozufozu 2023-03-28 17:52:10 -07:00
parent e31575de3b
commit 671e1a002c

View File

@ -48,7 +48,7 @@ public class GlStateTracker {
GlBufferType[] values = GlBufferType.values();
for (int i = 0; i < values.length; i++) {
if (buffers[i] != GlStateTracker.BUFFERS[i] && values[i] != GlBufferType.ELEMENT_ARRAY_BUFFER) {
if (buffers[i] != GlStateTracker.BUFFERS[i]) {
GlStateManager._glBindBuffer(values[i].glEnum, buffers[i]);
}
}