mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-12 22:18:36 +00:00
Derive Default on trivial structs
This commit is contained in:
parent
bbe598a24d
commit
06b08508d9
@ -605,6 +605,7 @@ pub trait TextureMap {
|
||||
fn gl_texture(&self, imgui_texture: imgui::TextureId) -> Option<glow::Texture>;
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct TrivialTextureMap();
|
||||
|
||||
impl TextureMap for TrivialTextureMap {
|
||||
@ -646,6 +647,7 @@ pub trait ContextStateManager<G: Gl> {
|
||||
fn post_destroy(&mut self, gl: &G, gl_version: GlVersion) {}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct TrivialCsm();
|
||||
|
||||
impl<G: Gl> ContextStateManager<G> for TrivialCsm {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user