From: Mikko Rasa Date: Fri, 1 Nov 2019 08:25:22 +0000 (+0200) Subject: Remove one more render function without a Renderer I missed before X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3e555c51a85b97090ae8c9b16ee425ee5ffe6ef8;p=libs%2Fgl.git Remove one more render function without a Renderer I missed before --- diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp index ef4afffe..dbbb85bf 100644 --- a/source/objectinstance.cpp +++ b/source/objectinstance.cpp @@ -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); diff --git a/source/objectinstance.h b/source/objectinstance.h index 1ad221c7..0ebef2fe 100644 --- a/source/objectinstance.h +++ b/source/objectinstance.h @@ -39,7 +39,6 @@ public: virtual const Geometry::BoundingSphere *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.