1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00
This commit is contained in:
Emil Ernerfeldt
2021-12-28 13:22:01 +01:00
parent f919b0cc05
commit cda4c8ba13
6 changed files with 14 additions and 13 deletions

View File

@@ -25,8 +25,8 @@ pub struct Painter {
/// Index is the same as in [`egui::TextureId::User`].
user_textures: HashMap<u64, Rc<SrgbTexture2d>>,
// TODO: 128-bit texture space?
next_native_tex_id: u64,
#[cfg(feature = "epi")]
next_native_tex_id: u64, // TODO: 128-bit texture space?
}
impl Painter {
@@ -57,6 +57,7 @@ impl Painter {
egui_texture: None,
egui_texture_version: None,
user_textures: Default::default(),
#[cfg(feature = "epi")]
next_native_tex_id: 1 << 32,
}
}
@@ -222,6 +223,7 @@ impl Painter {
// ------------------------------------------------------------------------
#[cfg(feature = "epi")]
pub fn set_texture(
&mut self,
facade: &dyn glium::backend::Facade,