Module: wine Branch: master Commit: c8a3f3f13f352e3451673085ca9c04b31658bab4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c8a3f3f13f352e3451673085ca...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Feb 19 08:53:50 2009 +0100
wined3d: Allow floating point values for WINED3DDECLUSAGE_BLENDWEIGHT.
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: