mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #25998 - jdm:vao-drop, r=nox
Avoid a panic when closing webgl pages using VAOs - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25891 - [x] These changes do not require tests because GC behaviour at shutdown is nondeterministic and difficult to test
This commit is contained in:
commit
a927f1ad8a
4 changed files with 12 additions and 12 deletions
|
@ -1312,7 +1312,7 @@ impl WebGLRenderingContext {
|
|||
|
||||
self.send_command(WebGLCommand::BindBuffer(target, buffer.map(|b| b.id())));
|
||||
if let Some(old) = slot.get() {
|
||||
old.decrement_attached_counter();
|
||||
old.decrement_attached_counter(false);
|
||||
}
|
||||
|
||||
slot.set(buffer);
|
||||
|
@ -2560,7 +2560,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
.map_or(false, |b| buffer == &*b)
|
||||
{
|
||||
self.bound_buffer_array.set(None);
|
||||
buffer.decrement_attached_counter();
|
||||
buffer.decrement_attached_counter(false);
|
||||
}
|
||||
buffer.mark_for_deletion(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue