mirror of https://github.com/qt/qtbase.git
Fix glyph cache type logic after 97c187da3c
The setting of the default format of Raster_A8 was mistakenly moved down to below the override of Raster_RGBMask. Change-Id: I52ee19180471c6f5c8d6824ee35f8d39632c9d94 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
8e57ad1a27
commit
6aef733a7a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue