diff options
author | Brian Paul <[email protected]> | 2013-08-23 15:12:07 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-08-26 12:52:06 -0600 |
commit | f91f6ef739185086b3bbfbf67a15edb1d9a304f4 (patch) | |
tree | 92b1a3d8ff18a99b525ed8d8bfbcade535eb6ee0 /src/glsl/ast_to_hir.cpp | |
parent | d65e3c082a02bd2e838d34b2ee9b87d36f6a2d25 (diff) |
glsl: init limit=0 to silence uninitialized var warning
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
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; |