Commit b91a5bcb authored by Gunnar Sletta's avatar Gunnar Sletta Committed by Marco Bubke
Browse files

Force gray-antialiasing for text.



Subpixel antialiasing cannot be supported when rendering is done
to a transparent-cleared FBO.

Change-Id: I46eeac792416f6164521c9142a8b6cffbbddc99b
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 333cec59
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment