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

This commit is contained in:
Erich Gubler authored and Connor Fitzgerald committed 2024-03-01 16:37:53 -05:00
1 parent 45ef1757cb
commit be8c7e6ced
1 file changed
+7
+7
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 {