wgpu: use adapter limits to avoid panic on window resize

This commit is contained in:
Wez Furlong committed 2024-01-20 12:33:22 -07:00
1 parent 7ae615b01d
commit 6938701cd3
1 file changed
+2 -1
+2 -1
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