We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6be1636 + 2094811 commit f6fb3abCopy full SHA for f6fb3ab
graphics/java/android/renderscript/Element.java
@@ -933,10 +933,10 @@ public boolean isCompatible(Element e) {
933
934
// Ignore mKind because it is allowed to be different (user vs. pixel).
935
// We also ignore mNormalized because it can be different. The mType
936
- // field must be non-null since we require name equivalence for
937
- // user-created Elements.
+ // field must not be NONE since we require name equivalence for
+ // all user-created Elements.
938
return ((mSize == e.mSize) &&
939
- (mType != null) &&
+ (mType != DataType.NONE) &&
940
(mType == e.mType) &&
941
(mVectorSize == e.mVectorSize));
942
}
0 commit comments