mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
The client attrib stack tracked by VBOTracter is now at least 1
This commit is contained in:
parent
e5e492a285
commit
17cef91b6a
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class VBOTracker {
|
|||
private final StateStack attrib_stack;
|
||||
|
||||
private VBOTracker() {
|
||||
int stack_size = Util.glGetInteger(GL11.GL_MAX_CLIENT_ATTRIB_STACK_DEPTH);
|
||||
int stack_size = Math.max(1, Util.glGetInteger(GL11.GL_MAX_CLIENT_ATTRIB_STACK_DEPTH));
|
||||
vbo_array_stack = new StateStack(stack_size, 0);
|
||||
vbo_element_stack = new StateStack(stack_size, 0);
|
||||
attrib_stack = new StateStack(stack_size, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue