Only start WebGPU thread if an adapter is requested

This commit is contained in:
Zakor Gyula 2019-11-20 09:03:10 +01:00
parent f8c957dc1b
commit a751b1c3d7
15 changed files with 200 additions and 147 deletions

View file

@ -874,8 +874,6 @@ fn create_constellation(
let resource_sender = public_resource_threads.sender();
let webgpu = webgpu::WebGPU::new();
let initial_state = InitialConstellationState {
compositor_proxy,
embedder_proxy,
@ -890,7 +888,6 @@ fn create_constellation(
webrender_document,
webrender_api_sender,
webgl_threads,
webgpu,
webvr_chan,
webxr_registry,
glplayer_threads,