From 760068cc8d5b443c4c6545870fa4f7eda7c6e775 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 6 Mar 2009 23:42:35 +1100 Subject: [PATCH] r300: fix uninit variable warning --- src/mesa/drivers/dri/r300/r300_cmdbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c index 231576fed89..3626b877eb9 100644 --- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c +++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c @@ -268,8 +268,7 @@ static void emit_zstencil_format(GLcontext *ctx, struct radeon_state_atom * atom r300ContextPtr r300 = R300_CONTEXT(ctx); BATCH_LOCALS(&r300->radeon); struct radeon_renderbuffer *rrb; - uint32_t zbpitch; - uint32_t format; + uint32_t format = 0; rrb = radeon_get_depthbuffer(&r300->radeon); if (!rrb) -- 2.30.2