diff options
author | José Fonseca <[email protected]> | 2012-10-26 15:04:46 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-10-26 16:02:59 +0100 |
commit | 91332e455a530b86f897874919da29efa563fdf3 (patch) | |
tree | 26eea0cc28b2397e93a6951534f97c46d177f04a /src/gallium/tests/graw/vs-test.c | |
parent | 2532f0d063d8326c1ba6fdb3394bb355326c4190 (diff) |
graw: Ensure new members are zeroed.
Several new state members were added, and they were not being zeroed,
causing random crashes.
Diffstat (limited to 'src/gallium/tests/graw/vs-test.c')
-rw-r--r-- | src/gallium/tests/graw/vs-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index 6c6f065af53..7fb97d84948 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -170,6 +170,8 @@ static void set_vertices( void ) } } + memset(&vbuf, 0, sizeof vbuf); + vbuf.stride = sizeof( struct vertex ); vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, |