]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shadowmap.cpp
Verify framebuffer completeness in effect constructors
[libs/gl.git] / source / shadowmap.cpp
index 6f62870be5c73b7f8a5420ac72851f3b05ae4676..c4dd07b03dbdb288fa55bda158dc305386813d70 100644 (file)
@@ -29,6 +29,7 @@ ShadowMap::ShadowMap(unsigned s, const Renderable &r, const Light &l):
        depth_buf.set_wrap(CLAMP_TO_EDGE);
        depth_buf.storage(DEPTH_COMPONENT, size, size);
        fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
+       fbo.require_complete();
 
        set_darkness(0.7);
        set_texture_unit(3);