Saved one getClientAttribStack() in StateTracker.pushAttrib()

This commit is contained in:
Elias Naur 2006-05-29 12:24:46 +00:00
parent bb66074c13
commit 5e4807ebac
1 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,9 @@ final class StateTracker {
} }
static void pushAttrib(int mask) { static void pushAttrib(int mask) {
getClientAttribStack().pushState(); StateStack attrib_stack = getClientAttribStack();
getClientAttribStack().setState(mask); attrib_stack.pushState();
attrib_stack.setState(mask);
if ((mask & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0) { if ((mask & GL11.GL_CLIENT_VERTEX_ARRAY_BIT) != 0) {
getReferencesStack().pushState(); getReferencesStack().pushState();
} }