From 798898b9adb5cf8e503512ba370085df7f5dcef8 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 28 Oct 2025 22:27:40 +0800 Subject: [PATCH] [Feat] (MG_Impl/GLImpl): relax check for DepthComponent32 to workaround misuse in Minecraft 1.21.5+ --- MobileGL/MG_Impl/GLImpl/Texture/Validators.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MobileGL/MG_Impl/GLImpl/Texture/Validators.cpp b/MobileGL/MG_Impl/GLImpl/Texture/Validators.cpp index 21ea27ff..4428a3df 100644 --- a/MobileGL/MG_Impl/GLImpl/Texture/Validators.cpp +++ b/MobileGL/MG_Impl/GLImpl/Texture/Validators.cpp @@ -208,7 +208,9 @@ namespace MobileGL::MG_Impl::GLImpl { (internalFormat != TextureInternalFormat::DepthComponent && internalFormat != TextureInternalFormat::DepthComponent16 && internalFormat != TextureInternalFormat::DepthComponent24 && - internalFormat != TextureInternalFormat::DepthComponent32F)) { + internalFormat != TextureInternalFormat::DepthComponent32F && + internalFormat != TextureInternalFormat::DepthComponent32 // workaround for Minecraft 1.21.5+ + )) { MG_State::pGLContext->RecordError( ErrorCode::InvalidOperation, MakeShared("MG_Impl/GLImpl", "ValidateTextureFormatWithType",