X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpipeline.cpp;h=53b51d7924bc91cfeb6b8c4e84ef6cf24134061a;hp=037741d24e4e1bfa0372c09943c1509cfad5b115;hb=d901696935a6bf9fdad6ac8abe65ffab79bd297d;hpb=18240e2bb031551e9c72a55c7d974904d209760a diff --git a/source/pipeline.cpp b/source/pipeline.cpp index 037741d2..53b51d79 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -27,6 +27,11 @@ Pipeline::Pipeline(const View &view) init(view.get_width(), view.get_height()); } +Pipeline::Pipeline(const Framebuffer &fbo) +{ + init(fbo.get_width(), fbo.get_height()); +} + void Pipeline::init(unsigned w, unsigned h) { camera = 0; @@ -192,7 +197,7 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const return; const Framebuffer *out_fbo = Framebuffer::current(); - // These is a no-ops but will ensure the related state gets restored + // These are no-ops but will ensure the related state gets restored BindRestore restore_fbo(out_fbo); BindRestore restore_depth_test(DepthTest::current()); BindRestore restore_blend(Blend::current());