mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #21717 - jdm:webgltmp5, r=nox
Make tests for uninitialized renderbuffers pass - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13710 - [x] There are tests for these changes <!-- 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/21717) <!-- Reviewable:end -->
This commit is contained in:
commit
9a9b4b2a14
8 changed files with 5 additions and 7 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -145,6 +145,7 @@ impl WebGLRenderbuffer {
|
|||
};
|
||||
|
||||
self.internal_format.set(Some(internal_format));
|
||||
self.is_initialized.set(false);
|
||||
|
||||
// FIXME: Invalidate completeness after the call
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue