[vtk-developers] OpenGL error checking in VTK

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Jul 5 11:44:47 EDT 2013


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,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
Join us at Qt Developer Days 2013! - https://devdays.kdab.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130705/146cd360/attachment-0001.bin>


More information about the vtk-developers mailing list