mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Auto merge of #21959 - servo:webgl, r=jdm
Fix a couple of Drop implementations for WebGL objects <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21959) <!-- Reviewable:end -->
This commit is contained in:
commit
a77ad4288c
2 changed files with 6 additions and 1 deletions
|
@ -161,6 +161,5 @@ impl WebGLBuffer {
|
|||
impl Drop for WebGLBuffer {
|
||||
fn drop(&mut self) {
|
||||
self.mark_for_deletion();
|
||||
assert!(self.is_deleted());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,3 +163,9 @@ impl WebGLRenderbuffer {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for WebGLRenderbuffer {
|
||||
fn drop(&mut self) {
|
||||
self.delete();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue