diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index a0fe68256..6e7e81d60 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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) {