]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Cosmetic fixes
[libs/gl.git] / source / pipeline.cpp
index b98ddb8a8d1185c1247522afca359edf80e7d06b..26073549d9451f943a05b1c183a2b09c6fd30d3f 100644 (file)
@@ -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)