mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Minor cleanup of the particle fix to avoid push/pop attrib
This commit is contained in:
1 parent
991a48f29f
commit
1c49c2a2ad
2 files changed
-6
No files matched your search
@@ -174,7 +174,6 @@ public class FXSparkle extends Particle {
|
||||
}
|
||||
|
||||
private static void beginRenderCommon(BufferBuilder buffer, TextureManager textureManager) {
|
||||
GL11.glPushAttrib(GL11.GL_LIGHTING_BIT);
|
||||
GlStateManager.depthMask(false);
|
||||
GlStateManager.enableBlend();
|
||||
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
|
||||
@@ -187,10 +186,8 @@ 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();
|
||||
}
|
||||
|
||||
private static final IParticleRenderType NORMAL_RENDER = new IParticleRenderType() {
|
||||
|
||||
@@ -112,7 +112,6 @@ public class FXWisp extends Particle {
|
||||
}
|
||||
|
||||
private static void beginRenderCommon(BufferBuilder bufferBuilder, TextureManager textureManager) {
|
||||
GL11.glPushAttrib(GL11.GL_LIGHTING_BIT);
|
||||
GlStateManager.depthMask(false);
|
||||
GlStateManager.enableBlend();
|
||||
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
|
||||
@@ -126,10 +125,8 @@ 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();
|
||||
}
|
||||
|
||||
private static final IParticleRenderType NORMAL_RENDER = new IParticleRenderType() {
|
||||
|
||||
Reference in new issue
Block a user