title: What will happen if an attribute is used in program without enabled and binding a buffer?
body: <p>Recently, when I reading the webgl spec. I have a question about below, since my program has randomly error on chrome browser due to it:</p>
  
  <p>What will happen if an attribute is used in program without binding a buffer and enabled during a call to drawArrays or drawElements?</p>
  
  <p>The spec only says that:</p>
  
  <blockquote>
    <p>If a vertex attribute is enabled as an array, a buffer is bound to
    that attribute, but the attribute is not consumed by the current
    program, then regardless of the size of the bound buffer, it will not
    cause any error to be generated during a call to drawArrays or
    drawElements.</p>
    
    <p>If a vertex attribute is enabled as an array via
    enableVertexAttribArray but no buffer is bound to that attribute via
    bindBuffer and vertexAttribPointer, then calls to drawArrays or
    drawElements will generate an INVALID_OPERATION error</p>
  </blockquote>
  
  <p>Can anyone help me on this??</p>