X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fshadowmap.cpp;h=921a1747875b4bf0b349042dac6aab26095cff84;hp=515830461cd02b9ec103038336e34ee7d6f11269;hb=9319f1c8ed99866966f20fbab952da673af2257e;hpb=40e1eba6c489e11a4c9b8865ddcd3ec3d9f83818 diff --git a/source/shadowmap.cpp b/source/shadowmap.cpp index 51583046..921a1747 100644 --- a/source/shadowmap.cpp +++ b/source/shadowmap.cpp @@ -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();