From ece8490bb5fbee10bbe8d186bdc5e13f85e22df4 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 5 Sep 2010 05:07:02 +0200 Subject: r300g,r300c: memset the compiler struct to zeros This should fix bogus reports "Too many temporaries." and maybe some others. --- src/gallium/drivers/r300/r300_vs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/r300/r300_vs.c') 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); -- cgit v1.2.3