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