From cfd8eb1411d3af53cee3082d272916ddfb4a7c7f Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Fri, 5 Dec 2025 17:01:20 -0800 Subject: [PATCH] fix compatability profile detection (#1159) --- .../coderbot/iris/pipeline/transform/AttributeTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coderbot/iris/pipeline/transform/AttributeTransformer.java b/src/main/java/net/coderbot/iris/pipeline/transform/AttributeTransformer.java index 428a8b5ec..b84697bf7 100644 --- a/src/main/java/net/coderbot/iris/pipeline/transform/AttributeTransformer.java +++ b/src/main/java/net/coderbot/iris/pipeline/transform/AttributeTransformer.java @@ -11,7 +11,7 @@ import org.taumc.glsl.Util; */ class AttributeTransformer { public static void transform(GLSLParser.Translation_unitContext translationUnit, AttributeParameters parameters, String profile, int version) { - boolean isCore = (profile.equals("core") || version > 140); + boolean isCore = profile.equals("core") || (version > 140 && !profile.equals("compatibility")); if (isCore) { if (parameters.type == PatchShaderType.VERTEX) { throw new IllegalStateException("Vertex shaders must be in the compatibility profile to run properly!");