From a4c8e7847710a3818e3839224251cafe24c4ceb6 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 23 Feb 2009 11:36:03 +0000 Subject: [PATCH] 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. --- clutter/clutter-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 0a013d091..c3f4c63df 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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 ();