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

This commit is contained in:
Erich Gubler 2024-02-13 15:47:56 -05:00 committed by Connor Fitzgerald
parent 45ef1757cb
commit be8c7e6ced
No known key found for this signature in database
GPG Key ID: CF0A1F83B4E1A995

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 {