From 1e7985dcc3a3ad8f7a201b267a6729f32ebffdf0 Mon Sep 17 00:00:00 2001 From: BendedWills Date: Mon, 2 Mar 2026 05:47:03 -0600 Subject: [PATCH] Initialize the flags of DSV desc --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index f3bc185..ae9aa32 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -730,6 +730,8 @@ app.DebugPrintf("width: %d, height: %d\n", width, height); descDSView.Format = DXGI_FORMAT_D24_UNORM_S8_UINT; descDSView.ViewDimension = D3D11_DSV_DIMENSION_TEXTURE2D; descDSView.Texture2D.MipSlice = 0; + // when would this ever be a non-garbage value? + descDSView.Flags = 0; hr = g_pd3dDevice->CreateDepthStencilView(g_pDepthStencilBuffer, &descDSView, &g_pDepthStencilView);