From 91332e455a530b86f897874919da29efa563fdf3 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 26 Oct 2012 15:04:46 +0100 Subject: graw: Ensure new members are zeroed. Several new state members were added, and they were not being zeroed, causing random crashes. --- src/gallium/tests/graw/shader-leak.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/tests/graw/shader-leak.c') diff --git a/src/gallium/tests/graw/shader-leak.c b/src/gallium/tests/graw/shader-leak.c index f24490e349f..6100af3192c 100644 --- a/src/gallium/tests/graw/shader-leak.c +++ b/src/gallium/tests/graw/shader-leak.c @@ -87,6 +87,7 @@ static void set_vertices( void ) handle = ctx->create_vertex_elements_state(ctx, 2, ve); ctx->bind_vertex_elements_state(ctx, handle); + memset(&vbuf, 0, sizeof vbuf); vbuf.stride = sizeof(struct vertex); vbuf.buffer_offset = 0; -- cgit v1.2.3