summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-12-08 01:05:52 +0000
committerJosé Fonseca <[email protected]>2012-12-08 01:05:52 +0000
commit0c2492ea4aa58673f746800dbf4206aff44bc907 (patch)
tree97a99ccfcf97dc0909df967946e58ea9c686a1c7 /src/mesa/drivers
parenteeff87cee3a01cbd3ca9153db531ca5b0d21f606 (diff)
mesa/meta: Move declaration before statements.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/common/meta.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index f95d207200d..ac036eaac6e 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -1856,6 +1856,7 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear)
" gl_FragColor = color;\n"
"}\n";
GLuint vs, fs;
+ bool has_integer_textures;
if (clear->ArrayObj != 0)
return;
@@ -1891,7 +1892,7 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear)
clear->ColorLocation = _mesa_GetUniformLocation(clear->ShaderProg,
"color");
- bool has_integer_textures = _mesa_is_gles3(ctx) ||
+ has_integer_textures = _mesa_is_gles3(ctx) ||
(_mesa_is_desktop_gl(ctx) && ctx->Const.GLSLVersion >= 130);
if (has_integer_textures) {