summaryrefslogtreecommitdiff
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-08-23 15:12:07 -0600
committerBrian Paul <brianp@vmware.com>2013-08-26 12:52:06 -0600
commitf91f6ef739185086b3bbfbf67a15edb1d9a304f4 (patch)
tree92b1a3d8ff18a99b525ed8d8bfbcade535eb6ee0 /src/glsl/ast_to_hir.cpp
parentd65e3c082a02bd2e838d34b2ee9b87d36f6a2d25 (diff)
glsl: init limit=0 to silence uninitialized var warning
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index feff5865a59..0db6b459278 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -1922,7 +1922,7 @@ validate_binding_qualifier(struct _mesa_glsl_parse_state *state,
* with an array of size N, all elements of the array from binding
* through binding + N - 1 must be within this range."
*/
- unsigned limit;
+ unsigned limit = 0;
switch (state->target) {
case vertex_shader:
limit = ctx->Const.VertexProgram.MaxTextureImageUnits;