From dcaf944e35cfb995b1262c325595c2dc35514da9 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 20 Jul 2016 00:33:26 +0200 Subject: [PATCH] wined3d: Check BLENDWEIGHT and BLENDINDICES FFP attributes for fixups. Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index 79d12462dcb..039b3a132af 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -381,6 +381,10 @@ static BOOL buffer_find_decl(struct wined3d_buffer *This, const struct wined3d_s fixup_flags, &stride_this_run) || ret; fixup_flags &= ~WINED3D_BUFFER_FIXUP_XYZRHW; + ret = buffer_check_attribute(This, si, state, WINED3D_FFP_BLENDWEIGHT, + fixup_flags, &stride_this_run) || ret; + ret = buffer_check_attribute(This, si, state, WINED3D_FFP_BLENDINDICES, + fixup_flags, &stride_this_run) || ret; ret = buffer_check_attribute(This, si, state, WINED3D_FFP_NORMAL, fixup_flags, &stride_this_run) || ret; ret = buffer_check_attribute(This, si, state, WINED3D_FFP_DIFFUSE,