[vlc-devel] [PATCH 1/6] direct3d11: use the D3D11 types as D3D9 is not available on some platforms

Steve Lhomme robux4 at gmail.com
Wed Jun 17 12:20:50 CEST 2015


---
 modules/video_output/msw/direct3d11.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index aa90ede..2332ed2 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -32,7 +32,7 @@
 #define COBJMACROS
 #define INITGUID
 #include <d3d11.h>
-#include <d3dx9math.h>
+#include <d3dtypes.h>
 
 /* avoided until we can pass ISwapchainPanel without c++/cx mode
 # include <windows.ui.xaml.media.dxinterop.h> */
@@ -122,8 +122,11 @@ typedef struct
 
 /* matches the D3D11_INPUT_ELEMENT_DESC we setup */
 typedef struct d3d_vertex_t {
-    D3DXVECTOR3 position;
-    D3DXVECTOR2 texture;
+    D3DVECTOR   position;
+    struct {
+        D3DVALUE x;
+        D3DVALUE y;
+    } texture;
     FLOAT       opacity;
 } d3d_vertex_t;
 
-- 
2.4.3




More information about the vlc-devel mailing list