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:
committed by
GitHub
parent
9f1a5dcb33
commit
74494cd713
@@ -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(())
|
||||
}
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user