diff options
Diffstat (limited to 'examples/opengl')
-rw-r--r-- | examples/opengl/pbuffers2/glwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/pbuffers2/glwidget.cpp b/examples/opengl/pbuffers2/glwidget.cpp index e1c9b5c..e4d320b 100644 --- a/examples/opengl/pbuffers2/glwidget.cpp +++ b/examples/opengl/pbuffers2/glwidget.cpp @@ -136,6 +136,7 @@ void GLWidget::draw() QPainter p(this); // used for text overlay // save the GL state set for QPainter + p.beginNativePainting(); saveGLState(); // render the 'bubbles.svg' file into our pbuffer @@ -206,6 +207,7 @@ void GLWidget::draw() // restore the GL state that QPainter expects restoreGLState(); + p.endNativePainting(); // draw the overlayed text using QPainter p.setPen(QColor(197, 197, 197, 157)); |