projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeff87c
)
mesa/meta: Move declaration before statements.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sat, 8 Dec 2012 01:05:52 +0000
(
01:05
+0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Sat, 8 Dec 2012 01:05:52 +0000
(
01:05
+0000)
src/mesa/drivers/common/meta.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index
f95d207
..
ac036ea
100644
(file)
--- 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) {