fix compatability profile detection (#1159)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2025-12-05 17:01:20 -08:00
1 parent 59c270a5b9
commit cfd8eb1411
1 file changed
+1 -1
@@ -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!");