Merge pull request #2686 from Fili-pk/master
Fixed rendering in chromium
This commit is contained in:
commit
6508ad67c1
1 changed files with 11 additions and 8 deletions
|
|
@ -52,7 +52,8 @@ impl Compositor {
|
|||
settings: Settings,
|
||||
compatible_window: Option<W>,
|
||||
) -> Result<Self, Error> {
|
||||
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor {
|
||||
let instance = wgpu::util::new_instance_with_webgpu_detection(
|
||||
&wgpu::InstanceDescriptor {
|
||||
backends: settings.backends,
|
||||
flags: if cfg!(feature = "strict-assertions") {
|
||||
wgpu::InstanceFlags::debugging()
|
||||
|
|
@ -60,7 +61,9 @@ impl Compositor {
|
|||
wgpu::InstanceFlags::empty()
|
||||
},
|
||||
..Default::default()
|
||||
});
|
||||
},
|
||||
)
|
||||
.await;
|
||||
|
||||
log::info!("{settings:#?}");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue