Add clear to webgl1 and webgl2 backends (#816)

Signed-off-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
Connor Fitzgerald 2021-10-18 17:10:30 -04:00 committed by GitHub
parent 9f1a5dcb33
commit 74494cd713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -666,6 +666,8 @@ impl PostProcess {
}
gl.bind_framebuffer(Gl::FRAMEBUFFER, Some(&self.fbo));
gl.clear_color(0.0, 0.0, 0.0, 0.0);
gl.clear(Gl::COLOR_BUFFER_BIT);
Ok(())
}

View file

@ -653,6 +653,8 @@ impl PostProcess {
}
gl.bind_framebuffer(Gl::FRAMEBUFFER, Some(&self.fbo));
gl.clear_color(0.0, 0.0, 0.0, 0.0);
gl.clear(Gl::COLOR_BUFFER_BIT);
Ok(())
}