[Mesa-dev] [PATCH 2/2] swrast: init i0, i1 values to silence warnings

Brian Paul brianp at vmware.com
Mon Aug 26 09:18:34 PDT 2013


---
 src/mesa/swrast/s_texfilter.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
index 0920a64..312b9ce 100644
--- a/src/mesa/swrast/s_texfilter.c
+++ b/src/mesa/swrast/s_texfilter.c
@@ -274,6 +274,7 @@ linear_texel_locations(GLenum wrapMode,
       break;
    default:
       _mesa_problem(NULL, "Bad wrap mode");
+      *i0 = *i1 = 0;
       u = 0.0F;
       break;
    }
-- 
1.7.10.4



More information about the mesa-dev mailing list