wgpu: use adapter limits to avoid panic on window resize
This commit is contained in:
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user