]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Use CLAMP_TO_EDGE on postprocessing textures
[libs/gl.git] / source / ambientocclusion.cpp
index 278720cec48fac4903661f4f52010fa99a3b19b1..c02daf52a6942cd24af3a6c5dc34dd578419da43 100644 (file)
@@ -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);