Fixed an error where matching swizzle were reported as wrong when using swizzle of type vec3 v3 = v2.xxy
This commit is contained in:
parent
3acd6b2f33
commit
a04a304954
@ -120,11 +120,11 @@ public class ShaderUtils {
|
|||||||
card = Integer.parseInt(type.replaceAll(".*vec", ""));
|
card = Integer.parseInt(type.replaceAll(".*vec", ""));
|
||||||
|
|
||||||
if (swizzling.length() > 0) {
|
if (swizzling.length() > 0) {
|
||||||
if (card >= swizzling.length()) {
|
//if (card >= swizzling.length()) {
|
||||||
card = swizzling.length();
|
card = swizzling.length();
|
||||||
} else {
|
// } else {
|
||||||
card = 0;
|
// card = 0;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user