mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-25 14:44:28 +00:00
Fix cull state leaking sometimes (#614)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user