Skip to content

Commit 8fed32b

Browse files
demo: Configure surface during startup.
Not doing this led to panics with wgpu 23.
1 parent ba0bd42 commit 8fed32b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/demo.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ impl GfxState {
112112
.get_default_config(&adapter, size.width, size.height)
113113
.unwrap()
114114
};
115+
surface.configure(&device, &surface_desc);
115116

116117
let swapchain_format = surface_desc.format;
117118

0 commit comments

Comments
 (0)