mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
don't compress font textures
This commit is contained in:
parent
5e18148ee3
commit
88361cfc34
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user