]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove one more render function without a Renderer I missed before
authorMikko Rasa <tdb@tdb.fi>
Fri, 1 Nov 2019 08:25:22 +0000 (10:25 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 1 Nov 2019 08:25:22 +0000 (10:25 +0200)
source/objectinstance.cpp
source/objectinstance.h

index ef4afffeeab8c5a97753ab6800417d6c15478e4a..dbbb85bf45838b8af1529f91c2b92cc2218262db 100644 (file)
@@ -11,12 +11,6 @@ ObjectInstance::ObjectInstance(const Object &obj):
        object(obj)
 { }
 
-void ObjectInstance::render(const Tag &tag) const
-{
-       Renderer renderer(0);
-       render(renderer, tag);
-}
-
 void ObjectInstance::render(Renderer &renderer, const Tag &tag) const
 {
        object.render(renderer, *this, tag);
index 1ad221c78e9f3796c22e2d04ae52817fec477b8b..0ebef2fedf30012e8db4d8bf3b228693b3d1ecfc 100644 (file)
@@ -39,7 +39,6 @@ public:
 
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return object.get_bounding_sphere(); }
 
-       virtual void render(const Tag &tag = Tag()) const;
        virtual void render(Renderer &, const Tag & = Tag()) const;
 
        /** Hook function, called from Object just before rendering the mesh.