]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Disable mipmaps from various render target textures
[libs/gl.git] / source / ambientocclusion.cpp
index 91e10ad7a4f33f4325cc12762fe65a5e2e347148..2378bcc78cb323e21439b01c601c8f5590a4ab3c 100644 (file)
@@ -21,7 +21,7 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float):
        texturing.attach(2, occlude_target.get_target_texture(RENDER_COLOR));
 
        unsigned seed = 1;
-       rotate_lookup.storage(RGBA, 4, 4);
+       rotate_lookup.storage(RGBA, 4, 4, 1);
        rotate_lookup.set_filter(NEAREST);
        unsigned char data[64];
        for(unsigned i=0; i<16; ++i)