mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fix GL state leak in particle rendering, fixes #3088
This commit is contained in:
1 parent
77b9574aa9
commit
b05378377b
2 files changed
+2
No files matched your search
@@ -187,6 +187,7 @@ public class FXSparkle extends Particle {
|
||||
|
||||
private static void endRenderCommon() {
|
||||
GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F);
|
||||
GlStateManager.enableLighting();
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.depthMask(true);
|
||||
GL11.glPopAttrib();
|
||||
|
||||
@@ -126,6 +126,7 @@ public class FXWisp extends Particle {
|
||||
|
||||
private static void endRenderCommon() {
|
||||
GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F);
|
||||
GlStateManager.enableLighting();
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.depthMask(true);
|
||||
GL11.glPopAttrib();
|
||||
|
||||
Reference in new issue
Block a user