title: glClearColor not working correct (android opengl)
body: <p>I want to change the background color of my app on runtime.
  So on button click I first call:</p>
  
  <pre><code>GLES20.glClearColor(color[0], color[1], color[2], color[3]);
  </code></pre>
  
  <p>Then I call:</p>
  
  <pre><code>GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  </code></pre>
  
  <p>And it does nothing! It keeps the current background color - doesnt change it. But when I then pause my app and resume it again the background color is changed.</p>
  
  <p><strong>EDIT:</strong>
  I found out a way to do it. Each frame i first call <code>glClear</code> but I dident call <code>glClearColor</code>. So if I first call <code>glClearColor</code> each frame before I call <code>glClear</code> it works. But this still doesnt make sense to me, I wanted to avoid calling <code>glClearColor</code> at each frame, thought it would be enough if I call it once when I want to change the color.</p>