diff --git a/src/backend/graphics/glium.rs b/src/backend/graphics/glium.rs index c128c6e..efd1cf6 100644 --- a/src/backend/graphics/glium.rs +++ b/src/backend/graphics/glium.rs @@ -72,7 +72,7 @@ impl GliumGraphicsBackend { /// Holding any other borrow while trying to borrow the backend /// mutably will panic. Note that glium will borrow the backend /// (not mutably) during rendering. - pub fn borrow_mut(&mut self) -> RefMut { + pub fn borrow_mut(&self) -> RefMut { self.backend.0.borrow_mut() } }