Skip to content

Commit

Permalink
add small clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jan 15, 2025
1 parent 9de54d2 commit 7f4952d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/neoforged/neoforge/client/ClientHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7f4952d

Please sign in to comment.