forked from qt-creator/qt-creator
Force gray-antialiasing for text.
Subpixel antialiasing cannot be supported when rendering is done to a transparent-cleared FBO. Change-Id: I46eeac792416f6164521c9142a8b6cffbbddc99b Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
committed by
Marco Bubke
parent
333cec5957
commit
b91a5bcb13
@@ -47,6 +47,10 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// Since we always render text into an FBO, we need to globally disable
|
||||
// subpixel antialiasing and instead use gray.
|
||||
qputenv("QSG_DISTANCEFIELD_ANTIALIASING", "gray");
|
||||
|
||||
QApplication application(argc, argv);
|
||||
|
||||
QCoreApplication::setOrganizationName("QtProject");
|
||||
|
||||
Reference in New Issue
Block a user