gl: add glRenderbufferStorage wrapper (non-multisample)

This commit is contained in:
ice_iix 2020-12-27 11:38:56 -08:00
parent f0d722457e
commit d0cd81fbf9
1 changed files with 11 additions and 0 deletions

View File

@ -928,6 +928,17 @@ impl Renderbuffer {
}
}
pub fn storage(&self, width: u32, height: u32, format: TextureFormat) {
unsafe {
glow_context().renderbuffer_storage(
gl::RENDERBUFFER,
format,
width as i32,
height as i32,
);
}
}
pub fn storage_multisample(
&self,
samples: i32,