processingQueue = true; queue.renderBuckets(); if (Spatial.getCurrentState(RenderState.RS_ZBUFFER) != null && !((ZBufferState) Spatial .getCurrentState(RenderState.RS_ZBUFFER)).isWritable()) { if (Spatial.defaultStateList[RenderState.RS_ZBUFFER] != null) Spatial.defaultStateList[RenderState.RS_ZBUFFER].apply(); Spatial.clearCurrentState(RenderState.RS_ZBUFFER); } processingQueue = false;
renderQueue();
    public void displayBackBuffer() {        // render queue if needed        processingQueue = true;        queue.renderBuckets();        if (Spatial.getCurrentState(RenderState.RS_ZBUFFER) != null                && !((ZBufferState) Spatial                        .getCurrentState(RenderState.RS_ZBUFFER)).isWritable()) {            if (Spatial.defaultStateList[RenderState.RS_ZBUFFER] != null)                    Spatial.defaultStateList[RenderState.RS_ZBUFFER].apply();            Spatial.clearCurrentState(RenderState.RS_ZBUFFER);        }        processingQueue = false;        prevColor = prevNorms = prevVerts = null;        Arrays.fill(prevTex, null);        GL11.glFlush();        if (!headless) Display.update();    }