[osg-users] Error when trying to draw text with Qt

Bruno Oliveira bruno.manata.oliveira at gmail.com
Tue Apr 5 13:23:24 PDT 2016


Hello,

I have a QGLWidget that wrappes a osg::Viewer, and I am trying to render
text with Qt API as follows

        glPushMatrix();
       qglColor(Qt::white);
        renderText(10, 10, "Ola" );
        glPopMatrix();

This is called inside the widget's paintEvent

After this is called, the following warning shows up:


*Warning: detected OpenGL error 'stack overflow' at after
RenderBin::draw(..)*

What could be wrong here?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160405/51ab0ecf/attachment-0002.htm>


More information about the osg-users mailing list