X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpipeline.cpp;h=6a9556a61c5b3fd308cd0e8c0134e30ecec8f78e;hb=41339bc44d076569c680b2c24c75b30ef1254c1b;hp=fcfead76f16c2ea9495801d98f7a9ed2e7bd7801;hpb=c112952f156b4ccb820568bca1fd1c59966f708e;p=libs%2Fgl.git diff --git a/source/pipeline.cpp b/source/pipeline.cpp index fcfead76..6a9556a6 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -118,7 +118,10 @@ void Pipeline::render_all() const glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); } for(vector::const_iterator i=effects.begin(); i!=effects.end(); ++i) + { (*i)->prepare(); + glViewport(0, 0, width, height); + } for(vector::const_iterator i=pass_order.begin(); i!=pass_order.end(); ++i) render(*i); for(vector::const_iterator i=effects.end(); i--!=effects.begin();)