mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-17 12:40:37 +02:00
st/mesa: don't resolve stencil twice
This commit is contained in:
parent
1554e69e00
commit
425b179faf
1 changed files with 3 additions and 1 deletions
|
|
@ -107,8 +107,10 @@ st_BlitFramebuffer_resolve(struct gl_context *ctx,
|
|||
dstRb = st_renderbuffer(dstDepth->Renderbuffer);
|
||||
|
||||
info->mask = (mask & GL_DEPTH_BUFFER_BIT) ? PIPE_MASK_Z : 0;
|
||||
if (combined && (mask & GL_STENCIL_BUFFER_BIT))
|
||||
if (combined && (mask & GL_STENCIL_BUFFER_BIT)) {
|
||||
mask &= ~GL_STENCIL_BUFFER_BIT;
|
||||
info->mask |= PIPE_MASK_S;
|
||||
}
|
||||
|
||||
info->src.res = srcRb->texture;
|
||||
info->src.layer = srcRb->surface->u.tex.first_layer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue