if (!((ZBufferState)Spatial.getCurrentState(RenderState.RS_ZBUFFER)).isWritable()) { Spatial.defaultStateList[RenderState.RS_ZBUFFER].apply(); Spatial.clearCurrentState(RenderState.RS_ZBUFFER); }
    public void displayBackBuffer() {        // render queue if needed        processingQueue = true;        queue.renderBuckets();        processingQueue = false;        GL11.glFlush();        Display.update();    }