X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbloom.cpp;h=db10c3b26fc45b3c7b0c28ba4c51687ef964a13d;hb=483f28cfaff846f74fd49cb73b9f45fe843011fe;hp=7c4338f8e1fe975706b677ec810e42b9dd91bd36;hpb=cd446554e998204eaba22504b7b28227feb8edbb;p=libs%2Fgl.git diff --git a/source/bloom.cpp b/source/bloom.cpp index 7c4338f8..db10c3b2 100644 --- a/source/bloom.cpp +++ b/source/bloom.cpp @@ -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();