diff --git a/examples/osgfpdepth/osgfpdepth.cpp b/examples/osgfpdepth/osgfpdepth.cpp index 1bf22b9c6..dd480bbc3 100644 --- a/examples/osgfpdepth/osgfpdepth.cpp +++ b/examples/osgfpdepth/osgfpdepth.cpp @@ -821,6 +821,11 @@ GraphicsContext* setupGC(osgViewer::Viewer& viewer, ArgumentParser& arguments) } } } + if (validConfigs.empty()) + { + cout << "no valid frame buffer configurations!\n"; + return 0; + } cout << "valid frame buffer configurations:\n"; for (vector::iterator itr = validConfigs.begin(), end = validConfigs.end();