aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-10 15:56:04 -0700
committerBrian Paul <[email protected]>2011-11-10 16:00:46 -0700
commit3800fe800bfc7faac6e629e584487c5904a5ef2b (patch)
tree2e591754e334eb0f9858a3f1a76bacfa3901e54e
parent3da5196263fb2ae60483044cbd34c94270e2accd (diff)
mesa: silence uninitialized var warning
-rw-r--r--src/mesa/main/uniform_query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp
index 39aa5570eca..5371d6a176b 100644
--- a/src/mesa/main/uniform_query.cpp
+++ b/src/mesa/main/uniform_query.cpp
@@ -894,7 +894,7 @@ _mesa_get_uniform_location(struct gl_context *ctx,
array_lookup = false;
}
- unsigned location;
+ unsigned location = 0;
const bool found = shProg->UniformHash->get(location, name_copy);
assert(!found