]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effect.h
Change the setup/finish_frame interface to be non-const
[libs/gl.git] / source / effect.h
index 1211c3b5094dee3ba14c73aed6f258b39d0aabd8..4be963f653c686ac9a1688f2be8e13399645a341 100644 (file)
@@ -27,8 +27,8 @@ public:
 
        virtual const Matrix *get_matrix() const { return renderable.get_matrix(); }
 
-       virtual void setup_frame() const { renderable.setup_frame(); }
-       virtual void finish_frame() const { renderable.finish_frame(); }
+       virtual void setup_frame(Renderer &r) { renderable.setup_frame(r); }
+       virtual void finish_frame() { renderable.finish_frame(); }
 };
 
 } // namespace GL