mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 16:30:50 +02:00
st/mesa: implement depth-only blit for BlitFramebuffer
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
7945e143e0
commit
cfc4d86656
1 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue