On 06/03/2008, Frank Richter frank.richter@gmail.com wrote:
This doesn't work. The problem with doing depth copy with fixed up depth stencil is that the size of the render buffer is different from the depth stencil size. Basically what needs to happen is that the render buffer contents need to be blitted to the depth stencil before copying the depth stencil from offscreen to onscreen.
Aside from that, depth stencil copying is broken (in that it doesn't always copy when it should, and sometimes copies when it shouldn't). I've got a patch that fixes this, but it causes regressions. Changing anything in the depth copying code would cause some nasty conflicts in my patch. Of course if you're interested in tracking down regressions I'd be happy to send you the patch.