mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix build when webgpu
feature is not enabled (#36804)
Fix winit_minimal build breakage Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
00b40bbdaf
commit
e25e63b587
3 changed files with 6 additions and 1 deletions
|
@ -371,6 +371,7 @@ pub struct Constellation<STF, SWF> {
|
|||
mem_profiler_chan: mem::ProfilerChan,
|
||||
|
||||
/// A single WebRender document the constellation operates on.
|
||||
#[cfg(feature = "webgpu")]
|
||||
webrender_document: DocumentId,
|
||||
|
||||
/// Webrender related objects required by WebGPU threads
|
||||
|
@ -715,6 +716,7 @@ where
|
|||
phantom: PhantomData,
|
||||
webdriver: WebDriverData::new(),
|
||||
document_states: HashMap::new(),
|
||||
#[cfg(feature = "webgpu")]
|
||||
webrender_document: state.webrender_document,
|
||||
#[cfg(feature = "webgpu")]
|
||||
webrender_wgpu,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue