The client attrib stack tracked by VBOTracter is now at least 1

This commit is contained in:
Elias Naur 2004-03-29 11:28:36 +00:00
parent e5e492a285
commit 17cef91b6a
1 changed files with 1 additions and 1 deletions

View File

@ -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);