st/mesa: implement depth-only blit for BlitFramebuffer

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2010-08-14 08:47:34 -07:00 committed by Brian Paul
parent 7945e143e0
commit cfc4d86656

View file

@ -188,8 +188,13 @@ st_BlitFramebuffer(GLcontext *ctx,
/* blitting depth and stencil separately */
if (mask & GL_DEPTH_BUFFER_BIT) {
/* blit Z only */
_mesa_problem(ctx, "st_BlitFramebuffer(DEPTH) not completed");
util_blit_pixels(st->blit, srcDepthRb->texture,
u_subresource(srcDepthRb->surface->face,
srcDepthRb->surface->level),
srcX0, srcY0, srcX1, srcY1,
srcDepthRb->surface->zslice,
dstDepthSurf, dstX0, dstY0, dstX1, dstY1,
0.0, pFilter);
}
if (mask & GL_STENCIL_BUFFER_BIT) {