resetFirstLast();
    public void setTexture(Texture texture, int textureUnit) {        if(textureUnit >= 0 && textureUnit < numTotalTexUnits) {            while(textureUnit >= this.texture.size()) {                this.texture.add(null);            }            this.texture.set(textureUnit, texture);            resetFirstLast();        }    }