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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user