[vtk-developers] OpenGL error checking in VTK
burlen
burlen.loring at gmail.com
Mon Jul 8 11:39:04 EDT 2013
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 :-)
Burlen
On 07/05/2013 08:44 AM, Giuseppe D'Angelo wrote:
> Il 04/07/2013 01:43, burlen ha scritto:
>> Please let me know if you have comments or concerns about this patch.
>
> 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.).
>
> 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.
>
> Note that this doesn't invalidate your patch, as without that
> extension glGetError() is the only way to get errors from OpenGL.
>
> [1] http://www.opengl.org/registry/specs/KHR/debug.txt
>
> Hope this helps,
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130708/5bc24a6e/attachment.html>
More information about the vtk-developers
mailing list