st/mesa: don't resolve stencil twice

This commit is contained in:
Christoph Bumiller 2011-08-05 20:10:04 +02:00
parent 1554e69e00
commit 425b179faf
1 changed files with 3 additions and 1 deletions

View File

@ -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;