summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-08-04 08:22:31 -0600
committerBrian Paul <[email protected]>2011-08-04 08:22:31 -0600
commit09ba2527e885f6134002205716a44d01d83638c3 (patch)
tree597fcaee2f34405d6bab07ee4f939218288fcadf /src/mesa/state_tracker
parent192baaac0fc4701e82dcc3e19b3033f81dd82a62 (diff)
st/mesa: move declaration before code
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_blit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_blit.c b/src/mesa/state_tracker/st_cb_blit.c
index 276d10fb557..626db12431d 100644
--- a/src/mesa/state_tracker/st_cb_blit.c
+++ b/src/mesa/state_tracker/st_cb_blit.c
@@ -90,13 +90,14 @@ st_BlitFramebuffer_resolve(struct gl_context *ctx,
if (mask & depthStencil) {
struct gl_renderbuffer_attachment *srcDepth, *srcStencil;
struct gl_renderbuffer_attachment *dstDepth, *dstStencil;
+ boolean combined;
srcDepth = &ctx->ReadBuffer->Attachment[BUFFER_DEPTH];
dstDepth = &ctx->DrawBuffer->Attachment[BUFFER_DEPTH];
srcStencil = &ctx->ReadBuffer->Attachment[BUFFER_STENCIL];
dstStencil = &ctx->DrawBuffer->Attachment[BUFFER_STENCIL];
- const boolean combined =
+ combined =
st_is_depth_stencil_combined(srcDepth, srcStencil) &&
st_is_depth_stencil_combined(dstDepth, dstStencil);