d3d11: Fix debug build on UWP
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 5 Oct 2022 00:08:54 +0000 (05:38 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 5 Oct 2022 18:29:01 +0000 (18:29 +0000)
commita5ef7cb04162cd09738d288e92639ce3ae16ef8b
tree53cb5f3a68db98bdb5a6636630df54d2027cec97
parent94c2cd9ddd1bddfd467d1cba19b9dded5a6f5984
d3d11: Fix debug build on UWP

GstDXGIGetDebugInterface() is unused when targeting UWP. We directly
call DXGIGetDebugInterface1() in that case.

Fixes build failure:

../gst-libs/gst/d3d11/gstd3d11device.cpp(271): error C2440: '=': cannot convert from 'HRESULT (__cdecl *)(UINT,const IID &,void **)' to 'DXGIGetDebugInterface_t'
../gst-libs/gst/d3d11/gstd3d11device.cpp(271): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3118>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp