From 7f4952dde868f438ccb633824734e3fe4d386171 Mon Sep 17 00:00:00 2001 From: Technici4n <13494793+Technici4n@users.noreply.github.com> Date: Thu, 16 Jan 2025 00:31:15 +0100 Subject: [PATCH] add small clarification --- src/main/java/net/neoforged/neoforge/client/ClientHooks.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/neoforged/neoforge/client/ClientHooks.java b/src/main/java/net/neoforged/neoforge/client/ClientHooks.java index 61f883ec90..525960cfb3 100644 --- a/src/main/java/net/neoforged/neoforge/client/ClientHooks.java +++ b/src/main/java/net/neoforged/neoforge/client/ClientHooks.java @@ -1136,6 +1136,8 @@ public static void texImageDepthStencil(int width, int height) { width, height, 0, GL32.GL_DEPTH_STENCIL, + // Since data is null, the format here does not matter as long as it matches internalFormat. + // So the usage, for depth, of unsigned int in one case and float in the other case, is not a problem. reducedPrecision ? GL32.GL_UNSIGNED_INT_24_8 : GL32.GL_FLOAT_32_UNSIGNED_INT_24_8_REV, null); }