Skip to content

Commit

Permalink
Fix cull state leaking sometimes (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Safixoo authored Sep 2, 2024
1 parent 2c89244 commit 73338e3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ public void updateChunks(Camera camera, Frustrum frustum, boolean hasForcedFrust
* 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();
Expand Down

0 comments on commit 73338e3

Please sign in to comment.