]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Move texture sampler state to a separate object
[libs/gl.git] / source / ambientocclusion.cpp
index 3fbaf81a12b6eeb0312eb4a6814aa2762b9ed309..8826964a8223f65941e0f0a40467f80191cd5442 100644 (file)
@@ -22,7 +22,7 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float):
 
        unsigned seed = 1;
        rotate_lookup.storage(RGBA, 4, 4, 1);
-       rotate_lookup.set_filter(NEAREST);
+       rotate_lookup.get_default_sampler().set_filter(NEAREST);
        unsigned char data[64];
        for(unsigned i=0; i<16; ++i)
        {