Remove text mipmapping disabling

As it is now disabled by default in CoglPango as a preparation for
merging it inside libst in the future

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3451>
This commit is contained in:
Bilal Elmoussaoui 2024-08-20 18:48:58 +02:00
parent 61ebfe3781
commit ccc46d3f5c

View File

@ -10,7 +10,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <cogl-pango/cogl-pango.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include <glib-unix.h> #include <glib-unix.h>
#include <glib/gi18n-lib.h> #include <glib/gi18n-lib.h>
@ -237,20 +236,6 @@ shell_introspection_init (void)
#endif #endif
} }
static void
shell_fonts_init (void)
{
CoglPangoFontMap *fontmap;
/* Disable text mipmapping; it causes problems on pre-GEM Intel
* drivers and we should just be rendering text at the right
* size rather than scaling it. If we do effects where we dynamically
* zoom labels, then we might want to reconsider.
*/
fontmap = COGL_PANGO_FONT_MAP (clutter_get_font_map ());
cogl_pango_font_map_set_use_mipmapping (fontmap, FALSE);
}
static void static void
shell_profiler_init (void) shell_profiler_init (void)
{ {
@ -683,7 +668,6 @@ main (int argc, char **argv)
shell_a11y_init (); shell_a11y_init ();
shell_perf_log_init (); shell_perf_log_init ();
shell_introspection_init (); shell_introspection_init ();
shell_fonts_init ();
g_log_set_writer_func (default_log_writer, NULL, NULL); g_log_set_writer_func (default_log_writer, NULL, NULL);