diff options
author | Vinson Lee <[email protected]> | 2013-11-21 20:24:05 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-11-21 20:29:38 -0800 |
commit | bb354c6c279031dafc08029a62cd3e76a6c1ca71 (patch) | |
tree | 2e0769c4a82067655513c4680b922d20708932bb /src/mesa/drivers/common/meta.c | |
parent | ec79c05cbfb7c68fbef7447e1744423c00f26654 (diff) |
meta: Move declaration before code.
Fixes MSVC build.
meta.c(2411) : error C2143: syntax error : missing ';' before 'type'
meta.c(2411) : error C2143: syntax error : missing ')' before 'type'
meta.c(2411) : error C2065: 'layer' : undeclared identifier
meta.c(2411) : error C2059: syntax error : ')'
meta.c(2411) : error C2143: syntax error : missing ';' before '{'
meta.c(2413) : error C2065: 'layer' : undeclared identifier
meta.c(2415) : error C2065: 'layer' : undeclared identifier
Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 0c05cc02596..7b41876b945 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -2408,7 +2408,8 @@ _mesa_meta_glsl_Clear(struct gl_context *ctx, GLbitfield buffers) /* draw quad(s) */ if (fb->NumLayers > 0) { - for (unsigned layer = 0; layer < fb->NumLayers; layer++) { + unsigned layer; + for (layer = 0; layer < fb->NumLayers; layer++) { if (fb->_IntegerColor) _mesa_Uniform1i(clear->IntegerLayerLocation, layer); else |