1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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
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(())
}