From c967ddd3038b5e1a47df21cadf247068a1d4d65c Mon Sep 17 00:00:00 2001 From: Tom Spilman Date: Sun, 22 Sep 2024 15:17:40 -0500 Subject: [PATCH] Fixed missing depth stencil state. --- MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs b/MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs index 6bb79f57967..21c1cc963e6 100644 --- a/MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs +++ b/MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs @@ -15,6 +15,7 @@ internal unsafe void PlatformApplyState(GraphicsDevice device) { MGG_DepthStencilState_Info info; info.depthBufferEnable = DepthBufferEnable; + info.depthBufferWriteEnable = DepthBufferWriteEnable; info.depthBufferFunction = DepthBufferFunction; info.referenceStencil = ReferenceStencil; info.stencilEnable = StencilEnable;