Added comments.

This commit is contained in:
Robert Osfield
2005-12-01 16:43:40 +00:00
parent 066760738b
commit b1f9e1dfd7
2 changed files with 3 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ int main( int argc, char **argv )
{
if (!textExt->isMultiTexturingSupported())
{
std::cout<<"Warning: texture_cube_map not supported by OpenGL drivers, unable to run application."<<std::endl;
std::cout<<"Warning: multi-texturing not supported by OpenGL drivers, unable to run application."<<std::endl;
return 1;
}
}

View File

@@ -810,12 +810,14 @@ int main( int argc, char **argv )
// add model to viewer.
viewer.setSceneData( node );
// register a test extension callback to be called when app realizes and gets a valid graphics context
osg::ref_ptr<TestSupportCallback> testSupportCallback = new TestSupportCallback();
viewer.setRealizeCallback(testSupportCallback.get());
// create the windows and run the threads.
viewer.realize();
// exit if we don't have the extensions this example needs.
if (!testSupportCallback->_supported)
{
osg::notify(osg::WARN)<<testSupportCallback->_errorMessage<<std::endl;