diff --git a/simgear/scene/util/OrthophotoManager.cxx b/simgear/scene/util/OrthophotoManager.cxx index 28b1c3ca..3f6ed639 100644 --- a/simgear/scene/util/OrthophotoManager.cxx +++ b/simgear/scene/util/OrthophotoManager.cxx @@ -238,6 +238,8 @@ namespace simgear { const Texture2DRef texture = textureFromImage(image); const OrthophotoBounds bbox = OrthophotoBounds::fromBucket(bucket); return new Orthophoto(texture, bbox); + } else { + SG_LOG(SG_OSG, SG_ALERT, "Failed to load orthophoto with path " << dds_path); } } @@ -250,6 +252,8 @@ namespace simgear { const Texture2DRef texture = textureFromImage(image); const OrthophotoBounds bbox = OrthophotoBounds::fromBucket(bucket); return new Orthophoto(texture, bbox); + } else { + SG_LOG(SG_OSG, SG_ALERT, "Failed to load orthophoto with path " << png_path); } } }