On Monday 15 December 2014 14:16:17 Cartik Sharma wrote: > Thanks so much. I tried a view.resetOpenGLState and it works without > crashing.
One of the common ways this crashes the driver is inside calls to glDrawElements if you have a bad element buffer bound which then indexes into some random memory address. This is easy to have happen if VTK leaves some state configured when control goes back to Qt Quick. Qt Quick assumes the state has not been tampered with and may go ahead and update something which tramples over one of your buffers. A handy technique is to run your app through a debug tracing tool like apitrace to see what state is left behind by your custom rendering code. Cheers, Sean -- Dr Sean Harmer | [email protected] | Managing Director UK Klarälvdalens Datakonsult AB, a KDAB Group company Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - Qt Experts - Platform-independent software solutions _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
