numTexUnits = buf.get(0); } texture = new Texture[numTexUnits];
numTexUnits = buf.get(0);
    public LWJGLTextureState() {        super();        if (numTexUnits == 0) {          IntBuffer buf = ByteBuffer              .allocateDirect(64)              .order(ByteOrder.nativeOrder())              .asIntBuffer();          GL11.glGetInteger(GL13.GL_MAX_TEXTURE_UNITS, buf);          numTexUnits = buf.get(0);        }        texture = new Texture[numTexUnits];    }