bufferData method

void bufferData(
  1. int target,
  2. NativeArray<num> data,
  3. int usage
)

Be careful which type of integer you really pass here. Unfortunately an UInt16List is viewed by the Dart type system just as List

Implementation

void bufferData(int target, NativeArray data, int usage) {
  startCheck('bufferData');
  gl.glBufferData(target, data.lengthInBytes, data.data, usage);
  checkError('bufferData');
}