Fix cull state leaking sometimes (#614)

This commit is contained in:
Safixo authored and GitHub committed 2024-09-02 13:50:53 -07:00
1 parent 2c89244fbe
commit 73338e3c3e
1 file changed
+4
@@ -269,6 +269,10 @@ public class SodiumWorldRenderer implements ChunkStatusListener {
* Performs a render pass for the given {@link RenderLayer} and draws all visible chunks for it.
*/
public void drawChunkLayer(BlockRenderPass pass, MatrixStack matrixStack, double x, double y, double z) {
// This fix a long-standing issue with culling state leaking because of mods,
// or other factors as having clouds disabled.
GLStateManager.enableCull();
if(AngelicaConfig.enableIris) iris$ensureStateSwapped();
// startDrawing/endDrawing are handled by 1.7 already
// pass.startDrawing();