title: glGetIntegerv returning 36064
body: <p>I have a Qt application with a <code>QOpenGLWidget</code>. In that widget I have my OpenGL functions, which are rendering my scene as I expect.</p>
  
  <p>Among those rendering instructions I put the following lines with which I'm getting an unexpected result:</p>
  
  <pre><code>void MyOpenGLVisualizer::paintGL()
  {
      GLint my_val = 0;
      glGetIntegerv(GL_DRAW_BUFFER, &amp;my_val);
      std::cout &lt;&lt; my_val &lt;&lt; std::endl;
      ...
  }
  </code></pre>
  
  <p>These lines print: <code>36064</code> which is <code>0x8ce0</code>. But according to <a href="https://www.opengl.org/sdk/docs/man2/xhtml/glGet.xml" rel="nofollow">glGet documentation</a> I would expect it to return: <code>GL_FRONT</code> which is <code>0x0404</code> or <code>GL_BACK</code> which is <code>0x0405</code>.</p>
  
  <p>I've invoked <code>glGetError()</code> after those lines, but it returns <code>0</code>.</p>
  
  <p>I thought maybe the return value was an Or-ed combination of these macros, but that would contain all of them:  <code>GL_BACK</code>, <code>GL_FRONT</code>, and other bits.</p>
  
  <p>So, what does that <code>36064</code> mean?</p>
  
  <p>(In case it helps, I'm using the OpenGL wrappers of Qt: <code>QOpenGLFunctions</code>)</p>