osgEarth 2.1.1
Functions

anonymous_namespace{URI.cpp} Namespace Reference

Functions

const osgDB::OptionsfixOptions (const osgDB::Options *input)

Function Documentation

const osgDB::Options* anonymous_namespace{URI.cpp}::fixOptions ( const osgDB::Options input)

"Fixes" the osgDB options by disabling the automatic archive caching. Archive caching screws up our URI resolution because with it on, osgDB remembers every archive file you open and effectively puts it in all future search paths :(

Definition at line 42 of file URI.cpp.

    {
        if ( input && input->getObjectCacheHint() == osgDB::Options::CACHE_NONE )
        {
            return input;
        }
        else
        {
            return Registry::instance()->cloneOrCreateOptions( input );
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines