[vlc-commits] chroma: d3d11: Fix winstore build

Hugo Beauzée-Luyssen git at videolan.org
Thu Jan 10 10:44:14 CET 2019


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jan 10 10:01:03 2019 +0100| [50e84bf3b93151fe2303de1cc4b6857babe77e7c] | committer: Hugo Beauzée-Luyssen

chroma: d3d11: Fix winstore build

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50e84bf3b93151fe2303de1cc4b6857babe77e7c
---

 modules/video_chroma/d3d11_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 752066cb04..84248391bb 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -130,6 +130,7 @@ int D3D11_AllocateResourceView(vlc_object_t *obj, ID3D11Device *d3ddevice,
     return VLC_SUCCESS;
 }
 
+#undef D3D11_GetDriverVersion
 
 #if !VLC_WINSTORE_APP
 static HKEY GetAdapterRegistry(vlc_object_t *obj, DXGI_ADAPTER_DESC *adapterDesc)
@@ -166,7 +167,6 @@ static HKEY GetAdapterRegistry(vlc_object_t *obj, DXGI_ADAPTER_DESC *adapterDesc
     return NULL;
 }
 
-#undef D3D11_GetDriverVersion
 void D3D11_GetDriverVersion(vlc_object_t *obj, d3d11_device_t *d3d_dev)
 {
     memset(&d3d_dev->WDDM, 0, sizeof(d3d_dev->WDDM));



More information about the vlc-commits mailing list