gl: add glRenderbufferStorage wrapper (non-multisample)
This commit is contained in:
parent
f0d722457e
commit
d0cd81fbf9
|
@ -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(
|
pub fn storage_multisample(
|
||||||
&self,
|
&self,
|
||||||
samples: i32,
|
samples: i32,
|
||||||
|
|
Loading…
Reference in New Issue