public void pop(GL2 gl) { if (this.attribsPushed) { gl.PopAttrib(); this.attribsPushed = false; } if (this.clientAttribsPushed) { gl.PopClientAttrib(); this.clientAttribsPushed = false; } if (this.modelviewPushed) { gl.MatrixMode(GL2.GL_MODELVIEW); gl.PopMatrix(); this.modelviewPushed = false; } if (this.projectionPushed) { gl.MatrixMode(GL2.GL_PROJECTION); gl.PopAttrib(); this.projectionPushed = false; } if (this.texturePushed) { gl.MatrixMode(GL2.GL_TEXTURE); gl.PopMatrix(); this.texturePushed = false; } }