X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fambientocclusion.cpp;h=4ef376251a6a065013666f85bfe4803db1b4f2e9;hb=ca12f072923156f02b316b72e3b38bdb8cda5ebc;hp=278720cec48fac4903661f4f52010fa99a3b19b1;hpb=d435f7230c5b2e3a5b9ccc7f38d16f6f3ece812a;p=libs%2Fgl.git diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index 278720ce..4ef37625 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -79,7 +79,9 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio): occlusion.storage(RGB, w, h); occlusion.set_min_filter(NEAREST); 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);