Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
QPainter::end() and OpenGL States
What does QPainter::end() explicitly do to the OpenGL state when called?
What are the OpenGL commands that are issued to the corresponding QGLWidget when QPainter::end() is called.
I am debugging a possible GL state corruption in my rendering pipeline affecting texture mapping.
Calling QPainter::end() prior to the affected drawing routine fixes the problem:
void MyQGLWidget::paintGL()
{
...
QPainter myPainter(this);
myPainter.end();
OnDrawOGLGeometry();
...
}
I'd like to know what QPainter::end() does explicitly to the OpenGL state.
Thanks.