Corrected the Subload::generateTextureObject() return type to make it consistent with Texture::generateTextureObject(..)

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15117 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-08-14 15:25:08 +00:00
parent 051ee49098
commit 0532c93c8c
2 changed files with 4 additions and 3 deletions

View File

@@ -93,9 +93,9 @@ class OSG_EXPORT Texture2D : public Texture
return texture.textureObjectValid(state);
}
virtual TextureObject* generateTextureObject(const Texture2D& texture, State& state) const
virtual osg::ref_ptr<TextureObject> generateTextureObject(const Texture2D& texture, State& state) const
{
return osg::Texture::generateTextureObject(&texture, state.getContextID(), GL_TEXTURE_2D).release();
return osg::Texture::generateTextureObject(&texture, state.getContextID(), GL_TEXTURE_2D);
}
virtual void load(const Texture2D& texture,State& state) const = 0;