]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shadowmap.cpp
Add compatibility support for slope-based animation interpolation
[libs/gl.git] / source / shadowmap.cpp
index 515830461cd02b9ec103038336e34ee7d6f11269..921a1747875b4bf0b349042dac6aab26095cff84 100644 (file)
@@ -24,7 +24,7 @@ ShadowMap::ShadowMap(unsigned s, Renderable &r, const Light &l):
        depth_buf.set_compare_enabled(true);
        depth_buf.set_compare_func(LEQUAL);
        depth_buf.set_wrap(CLAMP_TO_EDGE);
-       depth_buf.storage(DEPTH_COMPONENT, size, size);
+       depth_buf.storage(DEPTH_COMPONENT, size, size, 1);
        fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
        fbo.require_complete();