From 88361cfc34b711ae643cb786efdd7facb7b60288 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 27 Jan 2009 20:38:17 +0000 Subject: [PATCH] don't compress font textures --- panda/src/text/staticTextFont.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/text/staticTextFont.cxx b/panda/src/text/staticTextFont.cxx index 05e368051a..edbb488527 100644 --- a/panda/src/text/staticTextFont.cxx +++ b/panda/src/text/staticTextFont.cxx @@ -49,6 +49,14 @@ StaticTextFont(PandaNode *font_def) { int num_textures = tc.get_num_textures(); for (int i = 0; i < num_textures; ++i) { Texture *tex = tc.get_texture(i); + + // Don't compress font textures. Though there's a relatively high + // bang-for-the-buck in compressing them, there's an increased + // risk that broken graphics drivers will fail to render the text + // properly, causing troubles for a user who then won't be able to + // navigate the options menus to disable texture compression. + tex->set_compression(Texture::CM_off); + if (tex->get_quality_level() == Texture::QL_default) { tex->set_quality_level(text_quality_level); }