mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 20:45:59 +01:00
Missed error from dev -> next merge
- Need to restore element array buffer state too to avoid segfault in instancing.
This commit is contained in:
parent
e31575de3b
commit
671e1a002c
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user