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

Author: Vinson Lee <[email protected]>
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 ||

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to