fix(gles): discard cmd. enc. buf. on drop

This commit is contained in:
Erich Gubler
2024-02-13 15:47:56 -05:00
parent 2b487724f2
commit 754d93a4a7

View File

@@ -93,6 +93,13 @@ impl super::CommandBuffer {
}
}
impl Drop for super::CommandEncoder {
fn drop(&mut self) {
use crate::CommandEncoder;
unsafe { self.discard_encoding() }
}
}
impl super::CommandEncoder {
fn rebind_stencil_func(&mut self) {
fn make(s: &super::StencilSide, face: u32) -> C {