[vlc-commits] [Git][videolan/vlc][3.0.x] [3.0] direct3d11: fetch missing device information when running in UWP
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed May 14 12:25:40 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
70b0f6f5 by Tung Huynh at 2025-05-14T12:25:33+00:00
[3.0] direct3d11: fetch missing device information when running in UWP
- - - - -
1 changed file:
- modules/video_output/win32/direct3d11.c
Changes:
=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -1735,6 +1735,22 @@ static int Direct3D11Open(vout_display_t *vd, bool external_device)
}
#endif
}
+ else
+ {
+ HRESULT hr = S_OK;
+ IDXGIAdapter *adap = D3D11DeviceAdapter(sys->d3d_dev.d3ddevice);
+ if (adap == NULL)
+ hr = E_FAIL;
+ else
+ {
+ hr = IDXGIAdapter_GetDesc(adap, &sys->d3d_dev.adapterDesc);
+ IDXGIAdapter_Release(adap);
+ }
+ if (hr)
+ msg_Warn(vd, "can't get adapter description");
+
+ D3D11_GetDriverVersion(vd, &sys->d3d_dev);
+ }
IDXGISwapChain_QueryInterface( sys->dxgiswapChain, &IID_IDXGISwapChain4, (void **)&sys->dxgiswapChain4);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70b0f6f50168dba784cde9dbf6e67a657fa62ff5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70b0f6f50168dba784cde9dbf6e67a657fa62ff5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list