mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Minor cleanup following https://github.com/emilk/egui/pull/999
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user