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); }