webgl: Ignore webgl communication errors when dropping vertex array objects.

This commit is contained in:
Josh Matthews 2020-03-19 23:34:26 -04:00
parent 0fef1bfbec
commit 3a3397fbce
4 changed files with 12 additions and 12 deletions

View file

@ -166,7 +166,7 @@ impl WebGLBuffer {
);
}
pub fn decrement_attached_counter(&self) {
pub fn decrement_attached_counter(&self, fallible: bool) {
self.attached_counter.set(
self.attached_counter
.get()
@ -174,7 +174,7 @@ impl WebGLBuffer {
.expect("refcount underflowed"),
);
if self.is_deleted() {
self.delete(false);
self.delete(fallible);
}
}