strange bug does not occur anymore when index/weights are provided as attributes and not as buffer texture.