Skip to content

Commit 712379a

Browse files
fix(gles): discard cmd. enc. buf. on drop
1 parent 66ad078 commit 712379a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

wgpu-hal/src/gles/command.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ impl super::CommandBuffer {
9393
}
9494
}
9595

96+
impl Drop for super::CommandEncoder {
97+
fn drop(&mut self) {
98+
use crate::CommandEncoder;
99+
unsafe { self.discard_encoding() }
100+
}
101+
}
102+
96103
impl super::CommandEncoder {
97104
fn rebind_stencil_func(&mut self) {
98105
fn make(s: &super::StencilSide, face: u32) -> C {

0 commit comments

Comments
 (0)