Dynamically detect surface size limits on WGPU (#50340)

Fallout from https://github.com/zed-industries/zed/pull/50270

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
John TurandConrad Irwin authored and GitHub committed 2026-02-27 20:46:18 +00:00
1 parent deefbe6762
commit b56758c4c9
1 file changed
+3 -1
+3 -1
View File
@@ -120,7 +120,9 @@ impl WgpuContext {
.request_device(&wgpu::DeviceDescriptor {
label: Some("gpui_device"),
required_features,
required_limits: wgpu::Limits::downlevel_defaults(),
required_limits: wgpu::Limits::downlevel_defaults()
.using_resolution(adapter.limits())
.using_alignment(adapter.limits()),
memory_hints: wgpu::MemoryHints::MemoryUsage,
trace: wgpu::Trace::Off,
experimental_features: wgpu::ExperimentalFeatures::disabled(),