manual buffer swapping and a manual dbgui rendering are removed. vsync is an engine parameter.

This commit is contained in:
2019-02-17 05:36:42 +07:00
parent 98796dfeef
commit 0ad0803421
13 changed files with 60 additions and 67 deletions

View File

@@ -242,10 +242,11 @@ namespace
.property("u_MVP", MVP);
the<render>().execute(render::command_block<64>()
.add_command(render::viewport_command(
the<window>().real_size()))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f}))
.add_command(render::draw_command(material_, geometry_))
.add_command(render::swap_command(true)));
.add_command(render::draw_command(material_, geometry_)));
return true;
}