1
 2
 3
 4
 5
 6
 7
 8
 9
10
#[must_use = "DebugGroup needs to be stored in a variable that lasts for the duration of the group"]
pub struct DebugGroup {
    pub(crate) gl: crate::state::StateRef,
}

impl Drop for DebugGroup {
    fn drop(&mut self) {
        unsafe { self.gl.PopDebugGroup() }
    }
}