1
0
Fork 0

Handle unset texture-compression property correctly.

This commit is contained in:
Mathias Froehlich 2012-01-08 20:18:52 +01:00
parent 975a5202a8
commit db241f3e10

View file

@ -455,7 +455,7 @@ FGRenderer::init( void )
SGConfigureDirectionalLights( use_point_sprites, enhanced_lighting,
distance_attenuation );
if (const char* tc = fgGetString("/sim/rendering/texture-compression")) {
if (const char* tc = fgGetString("/sim/rendering/texture-compression", NULL)) {
if (strcmp(tc, "false") == 0 || strcmp(tc, "off") == 0 ||
strcmp(tc, "0") == 0 || strcmp(tc, "no") == 0 ||
strcmp(tc, "none") == 0) {