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

This commit is contained in:
Erich Gubler committed 2024-02-15 10:45:32 -05:00
1 parent 2b487724f2
commit 754d93a4a7
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 {