summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2008-12-30 19:21:30 +0000
committerJosé Fonseca <jfonseca@vmware.com>2008-12-30 19:21:30 +0000
commit369115e4c7a2985d880951fd8248deefa92025dd (patch)
tree5ffd5da37e5cd7eff3ce19d3ff2569d176ff511d /src/gallium/auxiliary/util
parent70894676c24c3b1c2e7643501f13640d7e56301d (diff)
gallium: Initialize var before use.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_gen_mipmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 30f161fe3b..b5eb896b7a 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -1198,7 +1198,7 @@ make_3d_mipmap(struct gen_mipmap_state *ctx,
{
struct pipe_context *pipe = ctx->pipe;
struct pipe_screen *screen = pipe->screen;
- uint dstLevel, zslice;
+ uint dstLevel, zslice = 0;
assert(pt->block.width == 1);
assert(pt->block.height == 1);