@Deprecated
    public void setDepthBuffer(Image.Format format) {
        if (id != -1) {
            throw new UnsupportedOperationException("FrameBuffer already initialized.");
        }

        if (!format.isDepthFormat()) {
            throw new IllegalArgumentException("Depth buffer format must be depth.");
        }

        depthBuf = new RenderBuffer();
        depthBuf.slot = format.isDepthStencilFormat() ? SLOT_DEPTH_STENCIL : SLOT_DEPTH;
        depthBuf.format = format;
    }
Enables the use of a depth buffer for this <code>FrameBuffer</code>.

@param format The format to use for the depth buffer.
@throws IllegalArgumentException If <code>format</code> is not a depth format.
@deprecated Use
{@link #setDepthTarget(com.jme3.texture.FrameBuffer.FrameBufferBufferTarget)}
jme3-core/src/main/java/com/jme3/texture/FrameBuffer.java