Skip to content

Commit cb43a9f

Browse files
authored
Auto merge of #27743 - lorenzbutter:master, r=jdm
Call eglMakeCurrent with non-null surfaces before anything else First call to eglMakeCurrent with no draw or read surface leads to black window on Nvidia/X11. This change ensures first call to eglMakeCurrent made with non-null surfaces. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #26353 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2 parents 534fdd7 + 7119eb7 commit cb43a9f

File tree

1 file changed

+3
-0
lines changed
  • components/webrender_surfman

1 file changed

+3
-0
lines changed

components/webrender_surfman/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ impl WebrenderSurfman {
8080
let _ = device.destroy_surface(&mut context, &mut surface);
8181
err
8282
})?;
83+
84+
device.make_context_current(&context)?;
85+
8386
let swap_chain = if headless {
8487
Some(SwapChain::create_attached(
8588
&mut device,

0 commit comments

Comments
 (0)