sotrh / learn-wgpu

Guide for using gfx-rs's wgpu library.
https://sotrh.github.io/learn-wgpu/
MIT License
1.48k stars 257 forks source link

Incorrect parameter for creation of WGPU Instance #530

Closed baad-c0de closed 4 months ago

baad-c0de commented 7 months ago

You pass in wgpu::Backends::all() will creating your instance. However, this creates Vulkan, DirectX12 and OpenGL backends on Windows and causes a crash on shutdown on the lastest WGPU.

I think this should be wgpu::Backends::PRIMARY.

This fixed my crash any way.

sotrh commented 5 months ago

I'll check it out.

sotrh commented 4 months ago

Fixed