]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Add get_width() / get_height() methods to Renderbuffer and Framebuffer
[libs/gl.git] / source / pipeline.cpp
index fcfead76f16c2ea9495801d98f7a9ed2e7bd7801..ea8b56a30763d74b2f98c93aec18e8a4f8173b5f 100644 (file)
@@ -115,7 +115,7 @@ void Pipeline::render_all() const
        if(fbo)
        {
                fbo->bind();
-               glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
+               clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT);
        }
        for(vector<Effect *>::const_iterator i=effects.begin(); i!=effects.end(); ++i)
                (*i)->prepare();