]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.cpp
Make clearing the render target a responsibility of Sequence
[libs/gl.git] / demos / desertpillars / source / desertpillars.cpp
index b5db8afd1f05d02867376819a160f2d2fea0fbc0..016cc95d12bb878ee38dfbe11866a9f143cff5c6 100644 (file)
@@ -39,6 +39,7 @@ DesertPillars::DesertPillars(int, char **):
        sky->set_debug_name("Sky");
 
        shadow_seq = make_unique<GL::Sequence>();
+       shadow_seq->set_clear_enabled(true);
        shadow_seq->set_debug_name("Shadow sequence");
        GL::Sequence::Step *step = &shadow_seq->add_step("shadow", content);
        step->set_depth_test(GL::LEQUAL);
@@ -53,6 +54,7 @@ DesertPillars::DesertPillars(int, char **):
        sequence.reset(seq_bld.build(view));
 
        env_seq = make_unique<GL::Sequence>();
+       env_seq->set_clear_enabled(true);
        env_seq->set_debug_name("Environment sequence");
        step = &env_seq->add_step("", *shadow_map);
        step->set_lighting(&resources.get<GL::Lighting>("Desert.lightn"));