Dirty canvas when exiting immersive sessions

This commit is contained in:
Manish Goregaokar 2020-04-09 20:27:24 -07:00
parent 37023b24f2
commit d146303f1d
2 changed files with 17 additions and 1 deletions

View file

@ -503,7 +503,7 @@ impl WebGLRenderingContext {
}
}
fn mark_as_dirty(&self) {
pub fn mark_as_dirty(&self) {
// If we have a bound framebuffer, then don't mark the canvas as dirty.
if self.bound_draw_framebuffer.get().is_some() {
return;