[vlc-commits] [Git][videolan/vlc][master] d3d11_fmt: use the proper IID type in DXGIGetDebugInterface()
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Jan 31 11:53:51 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
55c7b75f by Steve Lhomme at 2025-01-31T11:35:21+00:00
d3d11_fmt: use the proper IID type in DXGIGetDebugInterface()
It's different between C and C++, we should use the proper type no matter what.
See https://learn.microsoft.com/en-us/windows/win32/api/dxgidebug/nf-dxgidebug-dxgigetdebuginterface
- - - - -
1 changed file:
- modules/video_chroma/d3d11_fmt.cpp
Changes:
=====================================
modules/video_chroma/d3d11_fmt.cpp
=====================================
@@ -329,7 +329,7 @@ static void D3D11_GetDriverVersion(vlc_object_t *obj, d3d11_device_t *d3d_dev, I
struct dxgi_debug_handle_t
{
HINSTANCE dxgidebug_dll;
- HRESULT (WINAPI * pf_DXGIGetDebugInterface)(const GUID *riid, void **ppDebug);
+ HRESULT (WINAPI * pf_DXGIGetDebugInterface)(REFIID, void **ppDebug);
void Init()
{
@@ -362,7 +362,7 @@ struct dxgi_debug_handle_t
if (pf_DXGIGetDebugInterface)
{
IDXGIDebug *pDXGIDebug;
- if (SUCCEEDED(pf_DXGIGetDebugInterface(&IID_GRAPHICS_PPV_ARGS(&pDXGIDebug))))
+ if (SUCCEEDED(pf_DXGIGetDebugInterface(IID_GRAPHICS_PPV_ARGS(&pDXGIDebug))))
{
pDXGIDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
pDXGIDebug->Release();
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/55c7b75f6ecdceb548747339b4f350854753a9e4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/55c7b75f6ecdceb548747339b4f350854753a9e4
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