title: Why i get GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT?
body: <p>i am developing a game for android, but i my target devices are a little bit slow.
  In these devices the color is showed  in a different way, in some cases red are to much opaque. 
  As a solution to this I made a shader opengl correct colors according to the device. I load the textures from SD, then i do a render-to-texture to apply the shader and finally i delete the texture without the effect.
  This is done once time per texture load.
  The problem is that at some point my code render to texture begins to fail.</p>
  
  <pre><code>glActiveTexture(GL_TEXTURE0);
  glGenTextures(1, &amp;fbo_texture);
  glBindTexture(GL_TEXTURE_2D, fbo_texture);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
  glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
  glBindTexture(GL_TEXTURE_2D, 0);
  glGenFramebuffers(1, &amp;fbo);
  glBindFramebuffer(GL_FRAMEBUFFER, fbo);
  glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, fbo_texture, 0);
  // Disable depth buffer
  glDisable(GL_DEPTH_TEST);
  glDepthMask(GL_FALSE);
  
  GLint status;
  glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, fbo_texture, 0);
  if ((status = glCheckFramebufferStatus(GL_FRAMEBUFFER)) != GL_FRAMEBUFFER_COMPLETE) {
  </code></pre>
  
  <p>This works fine, but after a certain point begins to fail and always return GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT.</p>
  
  <p>I have no idea because it starts to fail.</p>
  
  <p><strong>Update</strong>: Now i just use only one FBO for all textures loaded, however i get the a new error on my android device:</p>
  
  <pre><code>eglLockWindowSurface: failed to map the memory for fd=80 offs=2428928
  waitForCondition(LockCondition) time out(identity=14,status=0) CPU may be pegged, trying again
  </code></pre>