From 2c7ceb130f01c2fd9a470410df7626ed748f525e Mon Sep 17 00:00:00 2001 From: IMS212 Date: Thu, 3 Oct 2024 11:09:33 -0700 Subject: [PATCH] Fix GL error --- .../java/net/irisshaders/iris/pipeline/programs/ShaderMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderMap.java b/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderMap.java index 86c693855b..7f77b2aec3 100644 --- a/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderMap.java +++ b/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderMap.java @@ -25,7 +25,7 @@ public ShaderMap(ShaderLoadingMap loadingMap, Function loadingMap.forAllShaders((key, shader) -> { if (shader != null) { if (deletionFunction.apply(shader)) { - GlStateManager.glDeleteShader(shader.id()); + GlStateManager.glDeleteProgram(shader.id()); return; }