X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpipeline.cpp;h=5294ffbd859d84f4c29ce7878dcd5a01a6fd376b;hp=63bdc4e84bbf82f10b883ade20f7d89c6216bc12;hb=5687bb2b8cd7715b5a5c5bb1d75f42992a23a56c;hpb=083578c2ca0aabfa60e8872e23d53e9101795dff diff --git a/source/pipeline.cpp b/source/pipeline.cpp index 63bdc4e8..5294ffbd 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -120,12 +120,14 @@ void Pipeline::add_postprocessor(PostProcessor &pp) color_buf = new Texture2D; color_buf->set_min_filter(NEAREST); color_buf->set_mag_filter(NEAREST); + color_buf->set_wrap(CLAMP_TO_EDGE); color_buf->storage((hdr ? RGB16F : RGB), width, height); fbo->attach(COLOR_ATTACHMENT0, *color_buf, 0); depth_buf = new Texture2D; depth_buf->set_min_filter(NEAREST); depth_buf->set_mag_filter(NEAREST); + depth_buf->set_wrap(CLAMP_TO_EDGE); depth_buf->storage(DEPTH_COMPONENT, width, height); fbo->attach(DEPTH_ATTACHMENT, *depth_buf, 0); }