X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fambientocclusion.cpp;h=4ef376251a6a065013666f85bfe4803db1b4f2e9;hb=27abdf9ad5d5e297fd74ddc23b39b0c7817a20d8;hp=c02daf52a6942cd24af3a6c5dc34dd578419da43;hpb=8daa4f20451419ebd065729a17960eeabde1751f;p=libs%2Fgl.git diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index c02daf52..4ef37625 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -81,6 +81,7 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio): occlusion.set_mag_filter(NEAREST); occlusion.set_wrap(CLAMP_TO_EDGE); fbo.attach(COLOR_ATTACHMENT0, occlusion, 0); + fbo.require_complete(); combine_texturing.attach(2, occlusion);