X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fpipeline.cpp;h=62aeaab938b60830d30dad685443a1e6490b95bb;hb=656b4577fccfb02bea747871e5ab10148f002443;hp=f05d15b8271fe0ce9f216b62258f50d10758f231;hpb=4d3bee9264c4e60fb811019fc1699e17a338d13d;p=libs%2Fgl.git diff --git a/source/pipeline.cpp b/source/pipeline.cpp index f05d15b8..62aeaab9 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -119,8 +119,7 @@ void Pipeline::add_postprocessor(PostProcessor &pp) color_buf = new Texture2D; color_buf->set_min_filter(NEAREST); color_buf->set_mag_filter(NEAREST); - color_buf->storage((hdr ? RGB16F : RGB), width, height, 0); - color_buf->image(0, RGB, UNSIGNED_BYTE, 0); + color_buf->storage((hdr ? RGB16F : RGB), width, height); fbo->attach(COLOR_ATTACHMENT0, *color_buf, 0); depth_buf = new Renderbuffer; depth_buf->storage(DEPTH_COMPONENT, width, height);