mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #23707 - servo:jdm-patch-31, r=paulrouget
Ensure GL context is prepared for deinitialization. I tested shutdown on Windows numerous times before and after this change, and I have not seen any further panics in debug builds in builds with the GL context made active before deinitializing WebRender. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23706 and fix #23614. - [x] These changes do not require tests because no tests on windows ;_; <!-- 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/23707) <!-- Reviewable:end -->
This commit is contained in:
commit
a2b76b0169
1 changed files with 1 additions and 0 deletions
|
@ -353,6 +353,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
|||
}
|
||||
|
||||
pub fn deinit(self) {
|
||||
self.window.prepare_for_composite();
|
||||
self.webrender.deinit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue