]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Add a function to clear all FBO component buffers
[libs/gl.git] / source / pipeline.cpp
index b98ddb8a8d1185c1247522afca359edf80e7d06b..02ccc22ebe80b6ef8fb756facb1516f9c4f0d1d7 100644 (file)
@@ -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)