Skip to content

Commit 93f3ad4

Browse files
committed
fix: device crash, out of memory during resize
This forces the State to use a fallback adapter, and is not a sustainable solution, as it limits the adapter to a software simulated implementation
1 parent 5c2e784 commit 93f3ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl State {
5252
&wgpu::RequestAdapterOptions {
5353
power_preference : wgpu::PowerPreference::default(),
5454
compatible_surface : Some(&surface),
55-
force_fallback_adapter: false,
55+
force_fallback_adapter: true,
5656
},
5757
).await.unwrap();
5858

0 commit comments

Comments
 (0)