diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp index 6525a4dad9..e91ada7b3a 100644 --- a/src/gui/opengl/qopenglpaintengine.cpp +++ b/src/gui/opengl/qopenglpaintengine.cpp @@ -2012,6 +2012,8 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) glDisable(GL_DEPTH_TEST); glDisable(GL_SCISSOR_TEST); + d->glyphCacheType = QFontEngineGlyphCache::Raster_A8; + #ifndef QT_OPENGL_ES_2 if (!QOpenGLFunctions::isES()) { glDisable(GL_MULTISAMPLE); @@ -2025,8 +2027,6 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) d->multisamplingAlwaysEnabled = d->device->context()->format().samples() > 1; } - d->glyphCacheType = QFontEngineGlyphCache::Raster_A8; - return true; }