Hello group,

I could need some help figuring out the correct way to use a 
vtkShaderProgram2 from within a mitk::VtkMapper.

Currently, my mapper overrides MitkRenderOpaqueGeometry. When the method 
is called for the first time given a specific renderer, it builds a new 
vtkShaderProgram2 and adds it to its local storage.
This way, rendering works as planned. It leads to no further problems if 
the mapper is destroyed manually.

However, the program crashes if the workbench window is closed while my 
mapper is still alive. The crash happens some calls below the destructor 
of vtkShaderProgram2, due to an integer overflow in vtkGetOpenGLErrors. 
What happens here, apparently, is that glGetError doesn't stop producing 
error codes; probably because the program is destroyed after its 
associated context.

Any ideas what I'm doing wrong here?

Kind regards,
Michael

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to