X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.cpp;h=517037a0029785198fd724c44e5c92943f11ee82;hb=3663bed18358a2399b2a8a8f7779d85e0ed81bd0;hp=54ef25a10bca8e59a123eb96322123e393595640;hpb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;p=libs%2Fgl.git diff --git a/source/pipeline.cpp b/source/pipeline.cpp index 54ef25a1..517037a0 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -95,7 +95,6 @@ void Pipeline::add_postprocessor(PostProcessor &pp) depth_buf = new Renderbuffer; depth_buf->storage(DEPTH_COMPONENT, width, height); fbo->attach(DEPTH_ATTACHMENT, *depth_buf); - Framebuffer::unbind(); } } @@ -125,7 +124,7 @@ void Pipeline::render_all() const if(fbo) { fbo->bind(); - clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT); + fbo->clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT); } for(vector::const_iterator i=effects.begin(); i!=effects.end(); ++i)