diff options
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 9386044..5e790cf 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -1722,7 +1722,7 @@ QPainterState *QGL2PaintEngineEx::createState(QPainterState *orig) const Q_D(const QGL2PaintEngineEx); if (orig) - const_cast<QGL2PaintEngineEx *>(this)->syncState(); + const_cast<QGL2PaintEngineEx *>(this)->ensureActive(); QOpenGL2PaintEngineState *s; if (!orig) |