From 8cfc3e1f4a3fe892974434ca98aeb66782f2e050 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Sun, 28 Dec 2025 19:42:39 -0800 Subject: [PATCH] Why were these bypassing GLSM? (#1207) --- .../angelica/glsm/RenderSystem.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gtnewhorizons/angelica/glsm/RenderSystem.java b/src/main/java/com/gtnewhorizons/angelica/glsm/RenderSystem.java index 4fd2fe0f3..f5ad72a53 100644 --- a/src/main/java/com/gtnewhorizons/angelica/glsm/RenderSystem.java +++ b/src/main/java/com/gtnewhorizons/angelica/glsm/RenderSystem.java @@ -74,7 +74,7 @@ public class RenderSystem { } public static void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) { - GL11.glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border); + GLStateManager.glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border); } public static void uniform1f(int location, float v0) { @@ -257,17 +257,17 @@ public class RenderSystem { public static final FloatBuffer PROJECTION_MATRIX_BUFFER = BufferUtils.createFloatBuffer(16); public static void setupProjectionMatrix(Matrix4f matrix) { - GL11.glMatrixMode(GL11.GL_PROJECTION); - GL11.glPushMatrix(); + GLStateManager.glMatrixMode(GL11.GL_PROJECTION); + GLStateManager.glPushMatrix(); matrix.get(0, PROJECTION_MATRIX_BUFFER); - GL11.glLoadMatrix(PROJECTION_MATRIX_BUFFER); - GL11.glMatrixMode(GL11.GL_MODELVIEW); + GLStateManager.glLoadMatrix(PROJECTION_MATRIX_BUFFER); + GLStateManager.glMatrixMode(GL11.GL_MODELVIEW); } public static void restoreProjectionMatrix() { - GL11.glMatrixMode(GL11.GL_PROJECTION); - GL11.glPopMatrix(); - GL11.glMatrixMode(GL11.GL_MODELVIEW); + GLStateManager.glMatrixMode(GL11.GL_PROJECTION); + GLStateManager.glPopMatrix(); + GLStateManager.glMatrixMode(GL11.GL_MODELVIEW); } public static void blitFramebuffer(int source, int dest, int offsetX, int offsetY, int width, int height, int offsetX2, int offsetY2, int width2, int height2, int bufferChoice, int filter) {