Skip to content

Commit

Permalink
Fix central monitor jei page (GregTechCEu#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Jan 30, 2024
1 parent 9a7ac23 commit 4c8b7ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/gregtech/client/utils/RenderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public static void useStencil(Runnable mask, Runnable renderInMask, boolean shou
renderInMask.run();

GL11.glDisable(GL11.GL_STENCIL_TEST);
GL11.glClearStencil(0);
GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);
GL11.glStencilFunc(GL11.GL_ALWAYS, 0, 0xFF);
}

public static void useLightMap(float x, float y, Runnable codeBlock) {
Expand Down

0 comments on commit 4c8b7ff

Please sign in to comment.