mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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 {
|
impl Drop for WebGLBuffer {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.delete();
|
self.mark_for_deletion();
|
||||||
|
assert!(self.is_deleted());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
[oes-texture-half-float.html]
|
[oes-texture-half-float.html]
|
||||||
expected: CRASH
|
[WebGL test #72: RGBA/HALF_FLOAT_OES is color renderable but EXT_color_buffer_half_float not exposed]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[expando-loss.html]
|
|
||||||
expected: CRASH
|
|
Loading…
Add table
Add a link
Reference in a new issue