webgl: Mark framebuffers as uninitialized when their attached renderbuffer's storage changes.

This commit is contained in:
Josh Matthews 2018-09-10 19:27:15 -04:00
parent 93fbc1575f
commit 59b8f971b5
6 changed files with 3 additions and 7 deletions

View file

@ -532,6 +532,7 @@ impl WebGLFramebuffer {
pub fn invalidate_renderbuffer(&self, rb: &WebGLRenderbuffer) {
self.with_matching_renderbuffers(rb, |_att, _| {
self.is_initialized.set(false);
self.update_status();
});
}

View file

@ -145,6 +145,7 @@ impl WebGLRenderbuffer {
};
self.internal_format.set(Some(internal_format));
self.is_initialized.set(false);
// FIXME: Invalidate completeness after the call

View file

@ -1,2 +1,2 @@
[uninitialized-test.html]
disabled: https://github.com/servo/servo/issues/13710
disabled: https://github.com/servo/servo/issues/21716

View file

@ -1,2 +0,0 @@
[depth-renderbuffer-initialization.html]
disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,2 +0,0 @@
[renderbuffer-initialization.html]
disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,2 +0,0 @@
[stencil-renderbuffer-initialization.html]
disabled: https://github.com/servo/servo/issues/13710