mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-20 12:29:40 +00:00
fix compatability profile detection (#1159)
This commit is contained in:
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!");
|
||||
|
||||
Reference in new issue
Block a user