Add tests for clears, render passes, framebuffers (#107)

* Add tests for clears, render passes, framebuffers

* Test load with a draw in it
This commit is contained in:
Kai Ninomiya
2017-08-14 16:32:26 -07:00
committed by GitHub
parent 37d11539a4
commit afa45a9176
9 changed files with 437 additions and 13 deletions

View File

@@ -97,6 +97,11 @@ namespace opengl {
{
commands.NextCommand<BeginRenderSubpassCmd>();
// TODO(kainino@chromium.org): This is added to possibly
// work around an issue seen on Windows/Intel. It should
// break any feedback loop before the clears, even if
// there shouldn't be any negative effects from this.
// Investigate whether it's actually needed.
glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
// TODO(kainino@chromium.org): possible future
// optimization: create these framebuffers at