X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.cpp;h=26073549d9451f943a05b1c183a2b09c6fd30d3f;hb=344dd6a52b55d847f3346e94ec266a8864764b9d;hp=b98ddb8a8d1185c1247522afca359edf80e7d06b;hpb=df20a7e137542a4156cc5ffa8118d59de6b68547;p=libs%2Fgl.git diff --git a/source/pipeline.cpp b/source/pipeline.cpp index b98ddb8a..26073549 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -57,7 +57,7 @@ void Pipeline::set_hdr(bool h) if(h==hdr) return; - bool old_hdr= hdr; + bool old_hdr = hdr; hdr = h; try { @@ -171,7 +171,7 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const { Framebuffer &fbo = (samples ? target_ms : target[0])->get_framebuffer(); fbo.bind(); - fbo.clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT); + fbo.clear(); } for(PassList::const_iterator i=passes.begin(); i!=passes.end(); ++i)