]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/slot.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / slot.h
index ad8630172308c71356db7a9ec9beab388628b7de..a675c64fb879a8f160e601dd5ccf1542aec0d313 100644 (file)
@@ -13,19 +13,17 @@ needs to be switched without affecting the rest.
 class Slot: public Renderable
 {
 private:
-       Renderable *renderable;
+       Renderable *content = 0;
 
 public:
-       Slot();
-
        void set(Renderable *);
-       Renderable *get() const { return renderable; }
+       Renderable *get() const { return content; }
 
        virtual const Matrix *get_matrix() const;
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const;
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
-       virtual void render(Renderer &, const Tag &) const;
+       virtual void render(Renderer &, Tag) const;
 };
 
 } // namespace GL