Call underlying_storage of TextureRenderElement without mapping

This was mapping `UnderlyingStorage::Memory` to `None`. I don't see any
reason for this. Though this also shouldn't change behavior since
`TextureRenderElement` doesn't provide `underlying_storage` currently.
This commit is contained in:
Ian Douglas Scott 2024-12-09 15:00:06 -08:00 committed by Victoria Brekenfeld
parent 29a649541d
commit b52d84dbd3
2 changed files with 23 additions and 44 deletions

View file

@ -1371,12 +1371,7 @@ where
#[cfg(feature = "debug")]
CosmicMappedRenderElement::Egui(elem) => {
let glow_renderer = renderer.glow_renderer_mut();
match elem.underlying_storage(glow_renderer) {
Some(UnderlyingStorage::Wayland(buffer)) => {
Some(UnderlyingStorage::Wayland(buffer))
}
_ => None,
}
elem.underlying_storage(glow_renderer)
}
}
}