quick fix

This commit is contained in:
Jack Mac 2021-09-30 18:33:00 -04:00
parent 5bdd4f819c
commit 76c74fbfc5
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ impl Renderer {
}
fn upload_font_texture(
mut fonts: imgui::FontAtlasRefMut,
fonts: &mut imgui::FontAtlas,
ctx: &Rc<Context>,
) -> Result<Texture, RendererError> {
let texture = fonts.build_rgba32_texture();

View File

@ -1042,7 +1042,7 @@ pub type RenderError = String;
fn prepare_font_atlas<T: TextureMap>(
gl: &Context,
mut fonts: imgui::FontAtlasRefMut,
fonts: &mut imgui::FontAtlas,
texture_map: &mut T,
) -> Result<GlTexture, InitError> {
#![allow(clippy::cast_possible_wrap)]