From 3e555c51a85b97090ae8c9b16ee425ee5ffe6ef8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 1 Nov 2019 10:25:22 +0200 Subject: [PATCH] Remove one more render function without a Renderer I missed before --- source/objectinstance.cpp | 6 ------ source/objectinstance.h | 1 - 2 files changed, 7 deletions(-) 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. -- 2.45.2