]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/windowview.cpp
Don't store a View's target framebuffer in the base class
[libs/gl.git] / source / render / windowview.cpp
index e139436b4c571ba5e25af37c1243dacb31658751..bbc7bb00512ff549bf34c1b234c97fa815571af5 100644 (file)
@@ -7,7 +7,6 @@ namespace Msp {
 namespace GL {
 
 WindowView::WindowView(Graphics::Window &w):
-       View(Framebuffer::system()),
        window(w),
        device(Device::get_current())
 {
@@ -29,5 +28,10 @@ void WindowView::window_resized(unsigned w, unsigned h)
                camera->set_aspect_ratio(aspect);
 }
 
+const Framebuffer &WindowView::get_target() const
+{
+       return Framebuffer::system();
+}
+
 } // namespace GL
 } // namespace Msp