]> 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 040fd6c7b1fa5ea5f995aafc4e45784665a87269..db10c3b26fc45b3c7b0c28ba4c51687ef964a13d 100644 (file)
@@ -76,8 +76,7 @@ Bloom::Bloom(unsigned w, unsigned h):
        {
                blur_shdata[i].uniform(loc, 0);
                tex[i].set_min_filter(NEAREST);
-               tex[i].storage(RGB16F, w, h, 0);
-               tex[i].image(0, RGB, UNSIGNED_BYTE, 0);
+               tex[i].storage(RGB16F, w, h);
        }
 
        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();