Commit f9d96c14a8d43dad5e179485802076ba1085d710

Authored by Mumfrey
1 parent 6554065e

add glPushAttrib overload

java/client/com/mumfrey/liteloader/gl/GL.java
@@ -2,6 +2,8 @@ package com.mumfrey.liteloader.gl; @@ -2,6 +2,8 @@ package com.mumfrey.liteloader.gl;
2 2
3 import java.nio.FloatBuffer; 3 import java.nio.FloatBuffer;
4 4
  5 +import org.lwjgl.opengl.GL11;
  6 +
5 import net.minecraft.client.renderer.GlStateManager; 7 import net.minecraft.client.renderer.GlStateManager;
6 import net.minecraft.client.renderer.GlStateManager.TexGen; 8 import net.minecraft.client.renderer.GlStateManager.TexGen;
7 9
@@ -803,9 +805,15 @@ public class GL @@ -803,9 +805,15 @@ public class GL
803 805
804 public static void glPushAttrib() 806 public static void glPushAttrib()
805 { 807 {
  808 + // GL_ENABLE_BIT | GL_LIGHTING_BIT
806 GlStateManager.pushAttrib(); 809 GlStateManager.pushAttrib();
807 } 810 }
808 811
  812 + public static void glPushAttrib(int mask)
  813 + {
  814 + GL11.glPushAttrib(mask);
  815 + }
  816 +
809 public static void glPopAttrib() 817 public static void glPopAttrib()
810 { 818 {
811 GlStateManager.popAttrib(); 819 GlStateManager.popAttrib();