From d7f4651c52a5d8f5cdf6ff0a93efa7635e6d2122 Mon Sep 17 00:00:00 2001 From: Patoke Date: Tue, 3 Mar 2026 23:52:16 -0300 Subject: [PATCH] chore: add warning for non zero initialized descriptor breaking the depth stencil --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 7c53cde..ff5a6dc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,19 @@ A project that aims at rebuilding the 4J libraries source code via decompilation for the Minecraft: Legacy Console Edition +## NOTICE + +There's a bug in the main game code where the depth stencil view descriptor isn't zero initialized, this happens in the file ``Windows64_Minecraft.cpp`` at the +```D3D11_DEPTH_STENCIL_VIEW_DESC descDSView;``` line + + +This causes the depth stencil view creation to fail and consequently breaks the game, to fix this you will need to add the following line after the definition described: + +```ZeroMemory(&descDSView, sizeof(descDSView));``` + +This issue only happens when building with newer versions of the Visual Studio compiler, Visual Studio 2012 isn't affected by this, so if you're working on a fork of the main source +remember to add this line to avoid breaking the game for other people + ## Why? This would allow compiling the Minecraft: Legacy Console Edition source code from newer versions of Visual Studio, expand the Renderer code, add new Input support, etc...