Re: [Interest] Getting current OpenGL state with QtQuick

2014-03-08 Thread Gunnar Sletta
Assuming that you do your FBO rendering in QQuickWindow::beforeRendering(), you should call QQuickWindow::resetOpenGLState() when you are done. That will put the GL in good shape for scene graph rendering to begin. The scene graph renderer does track some states internally, but this is not avai

[Interest] Getting current OpenGL state with QtQuick

2014-03-07 Thread Preet
Hi, I'm doing some manual OpenGL rendering with a custom QQuickItem (more or less rendering to FBO as outlined in the docs). I want to make sure I restore OpenGL state to how it was when Qt hands it off after my QQuickItem does its custom rendering. However, calling on OpenGL for all a bunch of st