mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix Drop assertion for WebGLBuffer
A buffer that is dropped may not have been marked for deletion but it must not be attached to any VAO.
This commit is contained in:
parent
59b3f0458e
commit
cb2f83cf8e
3 changed files with 5 additions and 4 deletions
|
@ -154,6 +154,7 @@ impl WebGLBuffer {
|
|||
|
||||
impl Drop for WebGLBuffer {
|
||||
fn drop(&mut self) {
|
||||
self.delete();
|
||||
self.mark_for_deletion();
|
||||
assert!(self.is_deleted());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue