mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-23 21:59:44 +00:00
Make glPushAttrib match native behavior if bypassing state manager cache
This commit is contained in:
1 parent
f7a79cf02f
commit
c8e6a6f34f
1 file changed
+1
-1
@@ -672,7 +672,7 @@ public class GLStateManager {
|
||||
public static void glPushAttrib(int mask) {
|
||||
// TODO: Proper state tracking; but at least for now the current cases of this didn't do anything related to textures and
|
||||
// just overly broadly set ALL_BITS :facepalm:
|
||||
GL11.glPushAttrib(mask & ~(GL11.GL_TEXTURE_BIT));
|
||||
GL11.glPushAttrib(GLStateManager.BYPASS_CACHE ? mask : (mask & ~(GL11.GL_TEXTURE_BIT)));
|
||||
}
|
||||
|
||||
public static void glPopAttrib() {
|
||||
|
||||
Reference in new issue
Block a user