wined3d: Allow floating point values for WINED3DDECLUSAGE_BLENDWEIGHT.
Henri Verbeet
hverbeet at codeweavers.com
Thu Feb 19 01:53:50 CST 2009
glWeightPointerARB() obviously accepts floating point data.
---
dlls/wined3d/vertexdeclaration.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c
index f63e2e7..1ed7f9e 100644
--- a/dlls/wined3d/vertexdeclaration.c
+++ b/dlls/wined3d/vertexdeclaration.c
@@ -142,6 +142,10 @@ static BOOL declaration_element_valid_ffp(const WINED3DVERTEXELEMENT *element)
case WINED3DDECLUSAGE_BLENDWEIGHT:
switch(element->Type)
{
+ case WINED3DDECLTYPE_FLOAT1:
+ case WINED3DDECLTYPE_FLOAT2:
+ case WINED3DDECLTYPE_FLOAT3:
+ case WINED3DDECLTYPE_FLOAT4:
case WINED3DDECLTYPE_D3DCOLOR:
case WINED3DDECLTYPE_UBYTE4:
case WINED3DDECLTYPE_SHORT2:
--
1.6.0.6
--------------070807050401050601010306--
More information about the wine-patches
mailing list