[osg-users] [3rdparty] OSG + Qt on Android

Plamen Terziev plspace at abv.bg
Wed Jun 12 02:19:21 PDT 2019


The OSG manages the state itself but Qt framebuffer rendering messes with that state.

Te following should fix this by setting program 0 and reseting the OSG vertex attributes state at the end of the frame.


Code:

QOpenGLContext::currentContext()->functions()->glUseProgram(0);
m_osg->renderingTraversals();

auto state = m_osg->getCamera()->getGraphicsContext()->getState();
state->lazyDisablingOfVertexAttributes();
state->applyDisablingOfVertexAttributes();




------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76278#76278







More information about the osg-users mailing list