Add an environment variable to disable mipmapped text
Mipmapped text is enabled by default in Clutter but it can cause problems on some drivers so it is convenient to have an environment variable to disable it for all apps.
This commit is contained in:
parent
8d04fbb05e
commit
a4c8e78477
1 changed files with 2 additions and 1 deletions
|
@ -1202,7 +1202,8 @@ clutter_init_real (GError **error)
|
|||
|
||||
resolution = clutter_backend_get_resolution (ctx->backend);
|
||||
cogl_pango_font_map_set_resolution (ctx->font_map, resolution);
|
||||
cogl_pango_font_map_set_use_mipmapping (ctx->font_map, TRUE);
|
||||
if (g_getenv ("CLUTTER_DISABLE_MIPMAPPED_TEXT") == NULL)
|
||||
cogl_pango_font_map_set_use_mipmapping (ctx->font_map, TRUE);
|
||||
|
||||
clutter_text_direction = clutter_get_text_direction ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue