diff options
author | José Fonseca <[email protected]> | 2012-01-16 12:21:03 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-01-16 12:21:40 +0000 |
commit | 455090c4c42cc7003594a750105980b125e140d4 (patch) | |
tree | a7866ecb44fca7b02967b35b0fd43f201a9b65c3 /src/gallium/auxiliary | |
parent | 23d4a0569dcb70bdfd748bf7e1f5102289bfad6b (diff) |
vl: Make array initialization portable.
Should fix MSVC build.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_video_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c index c033ddd2913..021e81e8de1 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.c +++ b/src/gallium/auxiliary/vl/vl_video_buffer.c @@ -360,11 +360,14 @@ vl_video_buffer_create_ex(struct pipe_context *pipe, const enum pipe_format resource_formats[VL_MAX_PLANES], unsigned depth, unsigned usage) { - struct pipe_resource res_tmpl, *resources[VL_MAX_PLANES] = {}; + struct pipe_resource res_tmpl; + struct pipe_resource *resources[VL_MAX_PLANES]; unsigned i; assert(pipe); + memset(resources, 0, sizeof resources); + vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[0], depth, usage, 0); resources[0] = pipe->screen->resource_create(pipe->screen, &res_tmpl); if (!resources[0]) |