<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks very much for sharing this. It
      looks quite useful and could replace the new error macro's on
      systems where it's available. That would be in a future patch :-)<br>
      <br>
      Burlen<br>
      <br>
      On 07/05/2013 08:44 AM, Giuseppe D'Angelo wrote:<br>
    </div>
    <blockquote cite="mid:51D6E9EF.1000506@kdab.com" type="cite">Il
      04/07/2013 01:43, burlen ha scritto:
      <br>
      <blockquote type="cite">Please let me know if you have comments or
        concerns about this patch.
        <br>
      </blockquote>
      <br>
      A different, orthogonal approach of doing OpenGL debugging is
      exploiting the GL_KHR_debug [1] OpenGL extension, which allows the
      user to install a callback that will get invoked by the GL server
      whenever it decides there's ``something interesting'' (errors, but
      also performance warnings, possible portability issues, etc.).
      <br>
      <br>
      By using it in synchronous mode you are able to literally put a
      breakpoint in your callback and see the exact GL call that caused
      the issue.
      <br>
      <br>
      Note that this doesn't invalidate your patch, as without that
      extension glGetError() is the only way to get errors from OpenGL.
      <br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="http://www.opengl.org/registry/specs/KHR/debug.txt">http://www.opengl.org/registry/specs/KHR/debug.txt</a>
      <br>
      <br>
      Hope this helps,
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>