Mesa (master): r300g: Fix uninitialized variable warnings in error path.

Vinson Lee vlee at kemper.freedesktop.org
Wed Jun 16 17:56:53 PDT 2010


Module: Mesa
Branch: master
Commit: 241218845309a0c765b97b7c966a06d60ca9dd57
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=241218845309a0c765b97b7c966a06d60ca9dd57

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Jun 16 17:56:00 2010 -0700

r300g: Fix uninitialized variable warnings in error path.

---

 src/gallium/drivers/r300/r300_emit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 251e170..4639bbb 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -512,6 +512,8 @@ void r300_emit_rs_state(struct r300_context* r300, unsigned size, void* state)
                     break;
                 default:
                     debug_printf("r300: Bad number of multisamples!\n");
+                    mspos0 = 0;
+                    mspos1 = 0;
                     break;
             }
 



More information about the mesa-commit mailing list