title: OpenGL: Overlay one texture over another and suppress white background
body: <p>I am a starter of Iphone opengl ES programming. I have two textures, the first one is the background and occupies the full screen. I am printing the second picture on top of the first image but the white background of the second image covers part of the background. I want the background to be visible where the foreground picture has no color(or White). I am unable to figure out how to use the glBlendFunc correctly.</p>
  
  <p>before printing the second image I am using Blending with following:</p>
  
  <p>glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  glColor4f(1.0f, 1.0f, 1.0f, 1.0f);</p>
  
  <p>Images at: <a href="http://www.flickr.com/x/t/0097002/photos/vjv2010/" rel="nofollow noreferrer">http://www.flickr.com/x/t/0097002/photos/vjv2010/</a></p>