diff --git a/imgui-gfx-renderer/src/lib.rs b/imgui-gfx-renderer/src/lib.rs index 8ed4e4d..7b9b717 100644 --- a/imgui-gfx-renderer/src/lib.rs +++ b/imgui-gfx-renderer/src/lib.rs @@ -175,7 +175,7 @@ impl Renderer { factory.create_sampler(SamplerInfo::new(FilterMethod::Trilinear, WrapMode::Clamp)); let pair = (texture, sampler); let mut textures = Textures::new(); - imgui.set_texture_id(textures.insert(pair.clone())); + imgui.set_font_texture_id(textures.insert(pair.clone())); let slice = Slice { start: 0, diff --git a/imgui-glium-renderer/src/lib.rs b/imgui-glium-renderer/src/lib.rs index 8665b99..6fe20a2 100644 --- a/imgui-glium-renderer/src/lib.rs +++ b/imgui-glium-renderer/src/lib.rs @@ -241,7 +241,7 @@ impl DeviceObjects { Texture2d::new(ctx, data) })?; let mut textures = Textures::new(); - im_gui.set_texture_id(textures.insert(texture)); + im_gui.set_font_texture_id(textures.insert(texture)); Ok(DeviceObjects { vertex_buffer: vertex_buffer, diff --git a/src/lib.rs b/src/lib.rs index c269039..507fd04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -172,7 +172,7 @@ impl ImGui { }) } } - pub fn set_texture_id(&mut self, value: ImTexture) { + pub fn set_font_texture_id(&mut self, value: ImTexture) { self.fonts().set_texture_id(value.id()); } pub fn set_ini_filename(&mut self, value: Option) {