Skip to content

Commit

Permalink
render: Give a useful error message if running without a compatible g…
Browse files Browse the repository at this point in the history
…raphics device (#588)
  • Loading branch information
Dinnerbone authored and Herschel committed May 15, 2020
1 parent 0047546 commit 4cbae59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion render/wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ impl WgpuRenderBackend<SwapChainTarget> {
},
wgpu::BackendBit::PRIMARY,
))
.unwrap();
.ok_or_else(|| {
"Ruffle requires hardware acceleration, but no compatible graphics device was found."
})?;

let (device, queue) = block_on(adapter.request_device(&wgpu::DeviceDescriptor {
extensions: wgpu::Extensions {
Expand Down

0 comments on commit 4cbae59

Please sign in to comment.