if (batch != null)
if (batch != null && batch.isEnabled())
    protected void applyRenderState(Stack[] states) {        for (int x = 0; x < states.length; x++) {            if (states[x].size() > 0) {                this.states[x] = ((RenderState) states[x].peek()).extract(                        states[x], this);            } else {                this.states[x] = Renderer.defaultStateList[x];            }        }        if (batchList != null)            for (int i = 0, cSize = getBatchCount(); i < cSize; i++) {                GeomBatch batch = getBatch(i);                if (batch != null)                    batch.updateRenderState(states);            }    }