]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Add Vector3 and Vector4 classes
[libs/gl.git] / source / pipeline.cpp
index fcfead76f16c2ea9495801d98f7a9ed2e7bd7801..6a9556a61c5b3fd308cd0e8c0134e30ecec8f78e 100644 (file)
@@ -118,7 +118,10 @@ void Pipeline::render_all() const
                glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
        }
        for(vector<Effect *>::const_iterator i=effects.begin(); i!=effects.end(); ++i)
+       {
                (*i)->prepare();
+               glViewport(0, 0, width, height);
+       }
        for(vector<Tag>::const_iterator i=pass_order.begin(); i!=pass_order.end(); ++i)
                render(*i);
        for(vector<Effect *>::const_iterator i=effects.end(); i--!=effects.begin();)