title: OpenGL: glGetError() not ressetting its flag?
body: <p>I am trying to debug my code using glGetError() but I noticed it was throwing error 1282 every time I called it. Eventually I called glGetError() 2 lines in a row and BOTH gave error 1282. </p>
  
  <p>Shouldnt it have reset the error flag after the first call, causing the second to return 0? Or does this function work differently than I thought?</p>