]> git.tdb.fi Git - libs/gl.git/commitdiff
Enable clearing in the viewer's default sequence
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Nov 2021 15:39:15 +0000 (17:39 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 14 Nov 2021 09:47:47 +0000 (11:47 +0200)
tools/viewer.cpp

index b6452a3cf454f9bfd8a69d189dceb05973aace5e..830caa77b81527799f66a2d70737316bd231787d 100644 (file)
@@ -240,6 +240,7 @@ Viewer::Viewer(int argc, char **argv):
        {
                sequence = new GL::Sequence();
                sequence->set_debug_name("Sequence");
+               sequence->set_clear_enabled(true);
                GL::Sequence::Step &step = sequence->add_step(0, *renderable);
                step.set_lighting(&lighting);
                step.set_depth_test(GL::LEQUAL);