Fixes for building with OSG_PROVIDE_READFILE to OFF

This commit is contained in:
Robert Osfield 2017-11-27 11:10:48 +00:00
parent a72a929d12
commit 9fc63d7613
2 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ int main(int argc, char** argv)
if (arguments.read("-devices") || arguments.read("--devices"))
{
// Force load QuickTime plugin, probe video capability, exit
osgDB::readImageFile("devices.live");
osgDB::readRefImageFile("devices.live");
return 1;
}
#endif

View File

@ -69,7 +69,7 @@ bool wxOsgApp::OnInit()
// load the scene.
wxString fname(argv[1]);
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile(std::string(fname.mb_str()));
osg::ref_ptr<osg::Node> loadedModel = osgDB::readRefNodeFile(std::string(fname.mb_str()));
if (!loadedModel)
{
std::cout << argv[0] <<": No data loaded." << std::endl;