This commit is contained in:
John-Mark Allen 2021-07-04 17:20:48 +01:00 committed by Jack Spira
parent 6858d09a17
commit 10eb51260e

View File

@ -602,7 +602,7 @@ impl TextureMap for TrivialTextureMap {
/// `Textures` from the `imgui` crate is a simple choice for a texture map
impl TextureMap for imgui::Textures<glow::Texture> {
fn gl_texture(&self, imgui_texture: imgui::TextureId) -> Option<glow::Texture> {
self.get(imgui_texture).cloned()
self.get(imgui_texture).copied()
}
fn register(&mut self, gl_texture: glow::Texture) -> Option<imgui::TextureId> {