]> git.mxchange.org Git - flightgear.git/commitdiff
Handle unset texture-compression property correctly.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 8 Jan 2012 19:18:52 +0000 (20:18 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 8 Jan 2012 19:19:36 +0000 (20:19 +0100)
src/Main/renderer.cxx

index a0fe6825603761df358dcc5b113e2b7953b4d83f..6e7e81d601332a7aaf4e6e3838479e1ef3289e8b 100644 (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) {