no need for it to be mut

This commit is contained in:
lifning 2021-10-17 21:56:36 -07:00
parent faf517ab98
commit 7af0f4a3f1
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ impl Zretro {
font_rect.set_height(64);
while let ControlFlow::Continue = self.emu.run() {
self.update_snow()?;
let ref_mut = self.emu.component_mut::<Sdl2SurfaceComponent>(self.sdl2surf_comp_id)?;
let surface = ref_mut.surface();
let surfcomp = self.emu.component_ref::<Sdl2SurfaceComponent>(self.sdl2surf_comp_id)?;
let surface = surfcomp.surface();
let emu_tx = tc.create_texture_from_surface(surface)?;