]> git.tdb.fi Git - libs/gl.git/blobdiff - source/windowview.cpp
Remove various old deprecated things
[libs/gl.git] / source / windowview.cpp
index 6a0eebda574034de2beb0025d84bec924d781ebb..a11f738c87915d7b7cec975d25f69f6aae0cdfc6 100644 (file)
@@ -7,6 +7,7 @@ namespace Msp {
 namespace GL {
 
 WindowView::WindowView(Graphics::Window &w, Graphics::GLContext &c):
+       View(Framebuffer::system()),
        window(w),
        context(c)
 {
@@ -26,8 +27,6 @@ void WindowView::window_resized(unsigned w, unsigned h)
        float aspect = static_cast<float>(w)/h;
        if(camera)
                camera->set_aspect_ratio(aspect);
-       for(list<Camera *>::iterator i=synced_cameras.begin(); i!=synced_cameras.end(); ++i)
-               (*i)->set_aspect_ratio(aspect);
 }
 
 } // namespace GL