//----------------------------------------------------------------------- TexturePtr TextureManager::prepare(const String &name, const String& group, TextureType texType, int numMipmaps, Real gamma, bool isAlpha, PixelFormat desiredFormat, bool hwGamma) { ResourceCreateOrRetrieveResult res = createOrRetrieve(name,group,false,0,0,texType,numMipmaps,gamma,isAlpha,desiredFormat,hwGamma); TexturePtr tex = res.first; tex->prepare(); return tex; }