[D3D9] Fix FVF POSITION mask

Ivan Gyurdiev ivg231 at gmail.com
Mon Jul 3 01:10:24 CDT 2006


This mask looks wrong - bits 16 and higher have to do with texture, not 
with position.
The same mask in d3d8 has value 0x000E, which is consistent with what 
MSDN says.
Looks like a typo to me... CC'ed Raphael (original commit) in case it's 
not a typo, but I doubt it.



-------------- next part --------------
---
 include/d3d9types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/d3d9types.h b/include/d3d9types.h
index 628d2f3..adcfa52 100644
--- a/include/d3d9types.h
+++ b/include/d3d9types.h
@@ -133,7 +133,7 @@ #define D3DWRAPCOORD_3   8
 #define MAX_DEVICE_IDENTIFIER_STRING        512
 
 #define D3DFVF_RESERVED0           0x0001
-#define D3DFVF_POSITION_MASK       0x4000E
+#define D3DFVF_POSITION_MASK       0x000E
 #define D3DFVF_XYZ                 0x0002
 #define D3DFVF_XYZRHW              0x0004
 #define D3DFVF_XYZB1               0x0006
-- 
1.4.0



More information about the wine-patches mailing list