Handle unset texture-compression property correctly.
This commit is contained in:
parent
975a5202a8
commit
db241f3e10
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ FGRenderer::init( void )
|
||||||
SGConfigureDirectionalLights( use_point_sprites, enhanced_lighting,
|
SGConfigureDirectionalLights( use_point_sprites, enhanced_lighting,
|
||||||
distance_attenuation );
|
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 ||
|
if (strcmp(tc, "false") == 0 || strcmp(tc, "off") == 0 ||
|
||||||
strcmp(tc, "0") == 0 || strcmp(tc, "no") == 0 ||
|
strcmp(tc, "0") == 0 || strcmp(tc, "no") == 0 ||
|
||||||
strcmp(tc, "none") == 0) {
|
strcmp(tc, "none") == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue