1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Some minor fixes and additions

This commit is contained in:
Emil Ernerfeldt
2019-11-02 09:50:49 +01:00
parent 1d6bc3baba
commit be8eb02b3f
9 changed files with 21 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ pub struct Painter {
}
impl Painter {
pub fn new(facade: &glium::backend::Facade) -> Painter {
pub fn new(facade: &dyn glium::backend::Facade) -> Painter {
let program = program!(facade,
140 => {
vertex: "
@@ -127,7 +127,7 @@ impl Painter {
}
}
fn upload_texture(&mut self, facade: &glium::backend::Facade, texture: &emigui::Texture) {
fn upload_texture(&mut self, facade: &dyn glium::backend::Facade, texture: &emigui::Texture) {
if self.current_texture_id == Some(texture.id) {
return; // No change
}