mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
fix(gles): discard cmd. enc. buf. on drop
This commit is contained in:
parent
45ef1757cb
commit
be8c7e6ced
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user