title: How to check which Frame Buffer Object is currently bound in OpenGL?
body: <p>I'm working with OpenGL Frame Buffer Objects. I have created a Frame Buffer Object with 2 color textures and a depth texture.</p>
  
  <p>I'm using </p>
  
  <pre><code>glBindFramebuffer(GL_READ_FRAMEBUFFER, ID);
  </code></pre>
  
  <p>To bind my framebuffer, but on console i'm getting this warning</p>
  
  <pre><code>Redundant State change in glBindFramebuffer call, FBO 1 already bound
  </code></pre>
  
  <p>How can I check which of my framebuffers is already bound? I mean which OpenGL function allows me to check the ID of the already bound framebuffer so that I can prevent redundant binding.</p>