diff options
author | Axel Davy <[email protected]> | 2016-10-09 14:26:32 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:48 +0200 |
commit | 9904581dc663543861c05ecf0ddd1a51a934f812 (patch) | |
tree | 65609a732d4f34d57c2ff648533c1280cd436f77 /src/gallium/state_trackers/nine/swapchain9.c | |
parent | d43151318aad1c8dc4a44dcb35d3c984ef922960 (diff) |
st/nine: Memset pipe_resource templates
Fixes regression introduced by
ecd6fce2611e88ff8468a354cff8eda39f260a31
and is more future proof than just clearing the next
field.
Other nine usages did already zero out the templates.
Signed-off-by: Axel Davy <[email protected]>
Acked-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/swapchain9.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index 79fba283fb9..838c2488c6d 100644 --- a/src/gallium/state_trackers/nine/swapchain9.c +++ b/src/gallium/state_trackers/nine/swapchain9.c @@ -228,6 +228,7 @@ NineSwapChain9_Resize( struct NineSwapChain9 *This, * For example 16 bits.*/ depth = 24; + memset(&tmplt, 0, sizeof(tmplt)); tmplt.target = PIPE_TEXTURE_2D; tmplt.width0 = pParams->BackBufferWidth; tmplt.height0 = pParams->BackBufferHeight; @@ -537,6 +538,7 @@ create_present_buffer( struct NineSwapChain9 *This, { struct pipe_resource tmplt; + memset(&tmplt, 0, sizeof(tmplt)); tmplt.target = PIPE_TEXTURE_2D; tmplt.width0 = width; tmplt.height0 = height; |