diff --git a/examples/osgmovie/osgmovie.cpp b/examples/osgmovie/osgmovie.cpp index 833a76091..523822ee2 100644 --- a/examples/osgmovie/osgmovie.cpp +++ b/examples/osgmovie/osgmovie.cpp @@ -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 diff --git a/examples/osgviewerWX/osgviewerWX.cpp b/examples/osgviewerWX/osgviewerWX.cpp index c4a198a4d..aa6678638 100644 --- a/examples/osgviewerWX/osgviewerWX.cpp +++ b/examples/osgviewerWX/osgviewerWX.cpp @@ -69,7 +69,7 @@ bool wxOsgApp::OnInit() // load the scene. wxString fname(argv[1]); - osg::ref_ptr loadedModel = osgDB::readNodeFile(std::string(fname.mb_str())); + osg::ref_ptr loadedModel = osgDB::readRefNodeFile(std::string(fname.mb_str())); if (!loadedModel) { std::cout << argv[0] <<": No data loaded." << std::endl;