From: Mathias Froehlich Date: Sun, 8 Jan 2012 19:18:52 +0000 (+0100) Subject: Handle unset texture-compression property correctly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=db241f3e10082499d6e891df5bee101afc0dc32c;p=flightgear.git Handle unset texture-compression property correctly. --- 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) {