Mesa (master): softpipe: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 14 06:52:52 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Feb 13 22:51:34 2010 -0800

softpipe: Silence uninitialized variable warnings.

---

 src/gallium/drivers/softpipe/sp_tex_sample.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 824d8d1..ecd6b39 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -1682,6 +1682,9 @@ sample_cube(struct tgsi_sampler *tgsi_sampler,
          break;
       default:
          assert(0 && "bad cube face");
+         sc = 0.0F;
+         tc = 0.0F;
+         ma = 0.0F;
       }
 
       {




More information about the mesa-commit mailing list