mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
fix(gles): discard cmd. enc. buf. on drop
This commit is contained in:
1 parent
45ef1757cb
commit
be8c7e6ced
1 file changed
+7
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user