1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

wgpu: use adapter limits to avoid panic on window resize

This commit is contained in:
Wez Furlong 2024-01-20 12:33:22 -07:00
parent 7ae615b01d
commit 6938701cd3
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -327,7 +327,8 @@ impl WebGpuState {
wgpu::Limits::downlevel_webgl2_defaults()
} else {
wgpu::Limits::downlevel_defaults()
},
}
.using_resolution(adapter.limits()),
label: None,
},
None, // Trace path