WebGLBindingStates: check if cachedAttribute is undefined
@@ -175,6 +175,8 @@
const cachedAttribute = cachedAttributes[ key ];
const geometryAttribute = geometryAttributes[ key ];
+ if ( cachedAttribute === undefined ) return true;
+
if ( cachedAttribute.attribute !== geometryAttribute ) return true;
if ( cachedAttribute.data !== geometryAttribute.data ) return true;