From 43f29e361e9cde9767ffab3f05828f66af96d81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 14 Mar 2023 12:47:09 +0200 Subject: [PATCH] examples: Update to windows 0.46 Part-of: --- examples/Cargo.toml | 2 +- examples/src/bin/d3d11videosink.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 8a2b19caf..6a30edb65 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -43,7 +43,7 @@ memfd = { version = "0.6", optional = true } uds = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] -windows = { version = "0.44", features=["Win32_Graphics_Direct3D11", +windows = { version = "0.46", features=["Win32_Graphics_Direct3D11", "Win32_Foundation", "Win32_Graphics_Direct3D", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Direct2D", "Win32_Graphics_Direct2D_Common", "Win32_Graphics_DirectWrite", diff --git a/examples/src/bin/d3d11videosink.rs b/examples/src/bin/d3d11videosink.rs index 39ff668e3..de5b51d2c 100644 --- a/examples/src/bin/d3d11videosink.rs +++ b/examples/src/bin/d3d11videosink.rs @@ -133,7 +133,7 @@ fn main() -> Result<()> { // situation and any of failure below would mean we are doing // something in wrong way or driver bug or so. unsafe { - let rtv = ID3D11RenderTargetView::from_raw_borrowed(&rtv_raw); + let rtv = ID3D11RenderTargetView::from_raw_borrowed(&rtv_raw).unwrap(); let resource = rtv.GetResource().unwrap(); let texture = resource.cast::().unwrap();