mirror of
https://github.com/brl/mutter.git
synced 2025-07-06 19:09:51 +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:
@ -1202,7 +1202,8 @@ clutter_init_real (GError **error)
|
|||||||
|
|
||||||
resolution = clutter_backend_get_resolution (ctx->backend);
|
resolution = clutter_backend_get_resolution (ctx->backend);
|
||||||
cogl_pango_font_map_set_resolution (ctx->font_map, resolution);
|
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 ();
|
clutter_text_direction = clutter_get_text_direction ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user