projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d4a05
)
vl: Make array initialization portable.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 16 Jan 2012 12:21:03 +0000
(12:21 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 16 Jan 2012 12:21:40 +0000
(12:21 +0000)
Should fix MSVC build.
src/gallium/auxiliary/vl/vl_video_buffer.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/vl/vl_video_buffer.c
b/src/gallium/auxiliary/vl/vl_video_buffer.c
index c033ddd2913f5804af062fea04e387e5f7a56b1b..021e81e8de1efe15780833fe53d8666d83fc0776 100644
(file)
--- 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])