X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fambientocclusion.cpp;h=c02daf52a6942cd24af3a6c5dc34dd578419da43;hb=5c883e77411a7eccc58d345b7d53d8709ae39452;hp=278720cec48fac4903661f4f52010fa99a3b19b1;hpb=d435f7230c5b2e3a5b9ccc7f38d16f6f3ece812a;p=libs%2Fgl.git diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index 278720ce..c02daf52 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -79,6 +79,7 @@ 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); combine_texturing.attach(2, occlusion);