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

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


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

chroma: d3d11: Fix winstore build

(cherry picked from commit 50e84bf3b93151fe2303de1cc4b6857babe77e7c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6955b93cc2d4a8b8eec3668199a10440e921f63b
---

 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 e8e48ff57f..992573b803 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -141,6 +141,7 @@ int D3D11_AllocateShaderView(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)
@@ -177,7 +178,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