Show
Ignore:
Timestamp:
04/22/10 12:13:05 (5 years ago)
Author:
robert
Message:

From Tim Moore, added check to whether validConfigs is empty.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgfpdepth/osgfpdepth.cpp

    r11355 r11360  
    822822        } 
    823823    } 
     824    if (validConfigs.empty()) 
     825    { 
     826        cout << "no valid frame buffer configurations!\n"; 
     827        return 0; 
     828    } 
    824829    cout << "valid frame buffer configurations:\n"; 
    825830    for (vector<FboConfig>::iterator itr = validConfigs.begin(),