X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fview.cpp;h=54828c7b8c75d265385c53309e97eb44651c93ce;hb=3fe1aab63922eec99d8bf6fd4fd60bec10df173c;hp=ba4b9469e723db14c6adcb6b972e4e976c3bf1c4;hpb=ce3658993ce2f6b7527a04a36a5e1af349c6f2e9;p=libs%2Fgl.git diff --git a/source/render/view.cpp b/source/render/view.cpp index ba4b9469..54828c7b 100644 --- a/source/render/view.cpp +++ b/source/render/view.cpp @@ -6,8 +6,7 @@ namespace Msp { namespace GL { -View::View(Framebuffer &t): - target(t), +View::View(): camera(0), content(0), internal_renderer(0) @@ -41,8 +40,7 @@ void View::render() void View::render(Renderer &renderer) { Renderer::Push _push(renderer); - renderer.set_framebuffer(&target); - renderer.clear(); + renderer.set_framebuffer(&get_target()); if(content) { if(camera)