]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Allocate textures attached to framebuffers automatically
[libs/gl.git] / source / pipeline.cpp
index 95f96536f81c1f6891c5be726c2517ca95a08e2a..62aeaab938b60830d30dad685443a1e6490b95bb 100644 (file)
@@ -120,7 +120,6 @@ void Pipeline::add_postprocessor(PostProcessor &pp)
                color_buf->set_min_filter(NEAREST);
                color_buf->set_mag_filter(NEAREST);
                color_buf->storage((hdr ? RGB16F : RGB), width, height);
-               color_buf->image(0, RGB, UNSIGNED_BYTE, 0);
                fbo->attach(COLOR_ATTACHMENT0, *color_buf, 0);
                depth_buf = new Renderbuffer;
                depth_buf->storage(DEPTH_COMPONENT, width, height);