optimize glPushAttrib calls

This commit is contained in:
sisyphussy committed 2025-10-01 09:22:18 +02:00
1 parent 948be399d2
commit fb952aba15
8 files changed
+9 -9

No files matched your search

@@ -404,7 +404,7 @@ public class GuiContainerManager {
public static void enableMatrixStackLogging() {
if (!contextEnabled) {
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
modelviewDepth = GL11.glGetInteger(GL11.GL_MODELVIEW_STACK_DEPTH);
contextEnabled = true;
}