Fixes for building with OSG_PROVIDE_READFILE to OFF
This commit is contained in:
parent
a72a929d12
commit
9fc63d7613
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user