Derive Default on trivial structs

This commit is contained in:
John-Mark Allen 2021-06-09 23:02:54 +01:00 committed by Jack Spira
parent bbe598a24d
commit 06b08508d9

View File

@ -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 {}