<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Framebuffer considered invalid when a draw call is done before glCheckFramebufferStatus"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94148#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Framebuffer considered invalid when a draw call is done before glCheckFramebufferStatus"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94148">bug 94148</a>
              from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=124959" name="attach_124959" title="hackfix">attachment 124959</a> <a href="attachment.cgi?id=124959&action=edit" title="hackfix">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=94148&attachment=124959'>[review]</a>
hackfix

The attached patch fixes both the issue in the repro program and in the
originally attached trace. Perhaps more needs to be done there though.

Not 100% sure what the right fix is, but basically after you do glTexImage() on
a texture attached to a fbo, we never set _NEW_BUFFERS, which in turn never
triggers the fb (re)validation logic. We do basically the same thing in
st_render_texture in st/mesa.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>