no need for it to be mut
This commit is contained in:
parent
faf517ab98
commit
7af0f4a3f1
|
@ -144,8 +144,8 @@ impl Zretro {
|
||||||
font_rect.set_height(64);
|
font_rect.set_height(64);
|
||||||
while let ControlFlow::Continue = self.emu.run() {
|
while let ControlFlow::Continue = self.emu.run() {
|
||||||
self.update_snow()?;
|
self.update_snow()?;
|
||||||
let ref_mut = self.emu.component_mut::<Sdl2SurfaceComponent>(self.sdl2surf_comp_id)?;
|
let surfcomp = self.emu.component_ref::<Sdl2SurfaceComponent>(self.sdl2surf_comp_id)?;
|
||||||
let surface = ref_mut.surface();
|
let surface = surfcomp.surface();
|
||||||
|
|
||||||
let emu_tx = tc.create_texture_from_surface(surface)?;
|
let emu_tx = tc.create_texture_from_surface(surface)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue