title: GL_INVALID_OPERATION: Insufficient buffer size
body: <p>i'm trying to paint some models 3D using javascript with webgl2 and i can't undestand the problem i get:</p>
  
  <pre><code>[.WebGL-00000188C244F2D0] GL_INVALID_OPERATION: Insufficient buffer size.
  </code></pre>
  
  <p>I suposse it is about the buffers but y don't know why, i have the buffers like that:</p>
  
  <pre><code> if (positions &amp;&amp; positions.length != 0) {
      const positionBuffer = gl.createBuffer();
      gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
      gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(positions), gl.STATIC_DRAW);
      gl.vertexAttribPointer(0, 4, gl.FLOAT, false, 0, 0);
      gl.enableVertexAttribArray(0);
  }
  </code></pre>
  
  <p>Model 3D:</p>
  
  <p>positions: 1146
  normals: 1146
  uvs: 72
  indices: 8360</p>
  
  <p>If you need more code say to me!</p>
  
  <p>Thanks!</p>