r300g,r300c: memset the compiler struct to zeros
[mesa.git] / src / gallium / drivers / r300 / r300_vs.c
index add3d552c45622704734094723c4ca5c0619376b..22c94adbda0c8e6294451bd66475a950661c90f5 100644 (file)
@@ -199,6 +199,7 @@ void r300_translate_vertex_shader(struct r300_context *r300,
     unsigned i;
 
     /* Setup the compiler */
+    memset(&compiler, 0, sizeof(compiler));
     rc_init(&compiler.Base);
 
     compiler.Base.Debug = DBG_ON(r300, DBG_VP);