[vlc-commits] direct3d9: we don't need a diffuse color

Steve Lhomme git at videolan.org
Tue Apr 30 11:13:48 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Apr 23 15:32:59 2019 +0200| [24509495ebb4f39baf8f346362ef62688c27364f] | committer: Steve Lhomme

direct3d9: we don't need a diffuse color

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

 modules/video_output/win32/direct3d9.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 0aeb02bfb7..63417d3a6f 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -176,10 +176,9 @@ typedef struct
 {
     FLOAT       x,y,z;      // vertex untransformed position
     FLOAT       rhw;        // eye distance
-    D3DCOLOR    diffuse;    // diffuse color
     FLOAT       tu, tv;     // texture relative coordinates
 } CUSTOMVERTEX;
-#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1)
+#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_TEX1)
 
 typedef struct d3d_region_t {
     D3DFORMAT          format;
@@ -418,7 +417,6 @@ static void  Direct3D9SetupVertices(CUSTOMVERTEX *vertices,
 
         vertices[i].z       = 0.0f;
         vertices[i].rhw     = 1.0f;
-        vertices[i].diffuse = D3DCOLOR_ARGB(alpha, 255, 255, 255);
     }
 }
 



More information about the vlc-commits mailing list