Skip to content

Commit

Permalink
fix(gles): discard cmd. enc. buf. on drop
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Feb 15, 2024
1 parent 6b831e2 commit d0b44b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wgpu-hal/src/gles/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0b44b7

Please sign in to comment.