I found the reason for these OpenGL errors: "QGLWidget::renderText" is buggy in the code path which reuses QPainter.
The qt_save_gl_state()/qt_restore_gl_state() pair pushes/pops the first texture unit's texture matrix stack (GL_TEXTURE0), but the call to "qt_gl_draw_text()" leaves the second texture unit active (GL_TEXTURE1), which means that qt_restore_gl_state() will try to pop a matrix of the empty stack of GL_TEXTURE1, and the error occurs. Using a QPainter::beginNativePainting()/QPainter::endNativePainting() pair before/after using "QGLWidget::renderText" did not solve the problem. - DavidF Am 06.10.2009 00:21, schrieb David Forstenlechner: > When running my application with Qt 4.6 I get a GL_STACK_UNDERFLOW in > qt_restore_gl_state(), > which did not occur with Qt 4.5.2/4.5.3. > > I am currently trying to track down that issue, > did someone else encounter similar problems with Qt 4.6? > > - DavidF > _______________________________________________ > Qt4-preview-feedback mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback > > _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
