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 authored and cwfitzgerald committed Mar 1, 2024
1 parent 45ef175 commit be8c7e6
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 be8c7e6

Please sign in to comment.