Skip to content

Commit

Permalink
Merge pull request #116 from jchung01/master
Browse files Browse the repository at this point in the history
Remove usage of GLSM push/popAttrib
  • Loading branch information
KasumiNova authored Aug 29, 2024
2 parents f219a37 + 0086222 commit 6c95a12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected void setupCamera(PositionedRect positionedRect) {
int width = positionedRect.getSize().width;
int height = positionedRect.getSize().height;

GlStateManager.pushAttrib();
// GlStateManager.pushAttrib();

Minecraft.getMinecraft().entityRenderer.disableLightmap();
GlStateManager.disableLighting();
Expand Down Expand Up @@ -355,8 +355,9 @@ protected void resetCamera() {
GlStateManager.enableBlend();
GlStateManager.disableDepth();

//reset attributes
GlStateManager.popAttrib();
// TODO: Might need to properly reset remaining attributes?
// but this method shouldn't be used - see Forge#1637
// GlStateManager.popAttrib();
}

protected void drawWorld() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public void render(Minecraft minecraft, int xPosition, int yPosition, @Nullable
}

GlStateManager.pushMatrix();
GlStateManager.pushAttrib();

texBlack.bind();
drawRect(xPosition, yPosition, 58, 58);
Expand Down Expand Up @@ -67,7 +66,6 @@ public float getBrightness() {
}, true, false);
}

GlStateManager.popAttrib();
GlStateManager.popMatrix();
}

Expand Down

0 comments on commit 6c95a12

Please sign in to comment.