depth_samp.set_min_filter(LINEAR);
depth_samp.set_compare(LEQUAL);
depth_samp.set_wrap(CLAMP_TO_EDGE);
- depth_buf.storage(DEPTH_COMPONENT, size, size, 1);
+ depth_buf.storage(DEPTH_COMPONENT32F, size, size, 1);
fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
fbo.require_complete();