mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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
@ -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…
Reference in New Issue
Block a user