mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 14:22:37 +03:00
wgpu: use adapter limits to avoid panic on window resize
This commit is contained in:
parent
7ae615b01d
commit
6938701cd3
@ -327,7 +327,8 @@ impl WebGpuState {
|
|||||||
wgpu::Limits::downlevel_webgl2_defaults()
|
wgpu::Limits::downlevel_webgl2_defaults()
|
||||||
} else {
|
} else {
|
||||||
wgpu::Limits::downlevel_defaults()
|
wgpu::Limits::downlevel_defaults()
|
||||||
},
|
}
|
||||||
|
.using_resolution(adapter.limits()),
|
||||||
label: None,
|
label: None,
|
||||||
},
|
},
|
||||||
None, // Trace path
|
None, // Trace path
|
||||||
|
Loading…
Reference in New Issue
Block a user