summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_vs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-09-05 05:07:02 +0200
committerMarek Olšák <maraeo@gmail.com>2010-09-05 05:09:25 +0200
commitece8490bb5fbee10bbe8d186bdc5e13f85e22df4 (patch)
tree2d549cebdce47718a9405f98aaf93219f69b113f /src/gallium/drivers/r300/r300_vs.c
parent7a212525a238eef7ba8a5c890019aab2d7be1045 (diff)
r300g,r300c: memset the compiler struct to zeros
This should fix bogus reports "Too many temporaries." and maybe some others.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r--src/gallium/drivers/r300/r300_vs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c
index add3d552c4..22c94adbda 100644
--- a/src/gallium/drivers/r300/r300_vs.c
+++ b/src/gallium/drivers/r300/r300_vs.c
@@ -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);