Mesa (master): r300g: Silence uninitialized variable warning.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Apr 13 07:36:11 UTC 2010
Module: Mesa
Branch: master
Commit: 8316da7cd20c9538b58b8927cc14f1639b881008
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8316da7cd20c9538b58b8927cc14f1639b881008
Author: Vinson Lee <vlee at vmware.com>
Date: Tue Apr 13 00:35:10 2010 -0700
r300g: Silence uninitialized variable warning.
---
src/gallium/drivers/r300/r300_state.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index f5ece39..0cb1023 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1432,6 +1432,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe,
break;
default:
assert(0);
+ cbuf = NULL;
}
if (buf == NULL || buf->width0 == 0 ||
More information about the mesa-commit
mailing list