Commit 8303c5d0a3d63d0fe6378b8f6e8b4b20ba172239

chalonverse 2022-06-08T12:37:36

Added missing SDL_zero for renderTargetViewDesc

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/render/direct3d12/SDL_render_d3d12.c b/src/render/direct3d12/SDL_render_d3d12.c
index 3059e23..a358a09 100644
--- a/src/render/direct3d12/SDL_render_d3d12.c
+++ b/src/render/direct3d12/SDL_render_d3d12.c
@@ -1540,6 +1540,7 @@ D3D12_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
 
     if (texture->access & SDL_TEXTUREACCESS_TARGET) {
         D3D12_RENDER_TARGET_VIEW_DESC renderTargetViewDesc;
+        SDL_zero(renderTargetViewDesc);
         renderTargetViewDesc.Format = textureDesc.Format;
         renderTargetViewDesc.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2D;
         renderTargetViewDesc.Texture2D.MipSlice = 0;