]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bloom.cpp
Give both color and depth buffers to postprocessors
[libs/gl.git] / source / bloom.cpp
index 7c4338f8e1fe975706b677ec810e42b9dd91bd36..db10c3b26fc45b3c7b0c28ba4c51687ef964a13d 100644 (file)
@@ -77,7 +77,6 @@ Bloom::Bloom(unsigned w, unsigned h):
                blur_shdata[i].uniform(loc, 0);
                tex[i].set_min_filter(NEAREST);
                tex[i].storage(RGB16F, w, h);
-               tex[i].image(0, RGB, UNSIGNED_BYTE, 0);
        }
 
        combine_shdata.uniform(combine_shader.get_uniform_location("source"), 1);
@@ -127,7 +126,7 @@ void Bloom::set_strength(float s)
        combine_shdata.uniform(combine_shader.get_uniform_location("strength"), s);
 }
 
-void Bloom::render(const Texture2D &src)
+void Bloom::render(const Texture2D &src, const Texture2D &)
 {
        const Framebuffer *dest = Framebuffer::current();
        blur_shader.bind();