From 8303c5d0a3d63d0fe6378b8f6e8b4b20ba172239 Mon Sep 17 00:00:00 2001 From: chalonverse Date: Wed, 8 Jun 2022 12:37:36 -0700 Subject: [PATCH] Added missing SDL_zero for renderTargetViewDesc --- src/render/direct3d12/SDL_render_d3d12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render/direct3d12/SDL_render_d3d12.c b/src/render/direct3d12/SDL_render_d3d12.c index 3059e235f..a358a098d 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;