mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix player validation errors on exit
This commit is contained in:
@@ -484,6 +484,9 @@ fn main() {
|
||||
),
|
||||
)
|
||||
.expect("Unable to find an adapter for selected backend");
|
||||
|
||||
let info = gfx_select!(adapter => global.adapter_get_info(adapter));
|
||||
log::info!("Picked '{}'", info.name);
|
||||
gfx_select!(adapter => global.adapter_request_device(
|
||||
adapter,
|
||||
&desc,
|
||||
@@ -506,6 +509,7 @@ fn main() {
|
||||
|
||||
#[cfg(feature = "renderdoc")]
|
||||
rd.end_frame_capture(ptr::null(), ptr::null());
|
||||
gfx_select!(device => global.device_poll(device, true));
|
||||
}
|
||||
#[cfg(feature = "winit")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user