summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-08-05 20:10:04 +0200
committerChristoph Bumiller <[email protected]>2011-08-07 15:34:34 +0200
commit425b179fafe93ddf4abacbccb67ed6aecbef6a7e (patch)
treeb5526ee50971c090528e94cc3ad034c790d56425 /src
parent1554e69e00566bc7255b82f5ea93b1f02f1a5bb3 (diff)
st/mesa: don't resolve stencil twice
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_blit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_blit.c b/src/mesa/state_tracker/st_cb_blit.c
index 626db12431d..750f541b5dd 100644
--- a/src/mesa/state_tracker/st_cb_blit.c
+++ b/src/mesa/state_tracker/st_cb_blit.c
@@ -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;