Henri Verbeet : wined3d: Properly check if an attribute is used in transform_texture().
Module: wine Branch: master Commit: 6ef17134d22062cb4553177ff78263ba8aefc569 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ef17134d22062cb4553177ff7... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Aug 26 10:18:05 2009 +0200 wined3d: Properly check if an attribute is used in transform_texture(). --- dlls/wined3d/state.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 8e05464..e6963c4 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3099,7 +3099,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, s set_texture_matrix(&stateblock->transforms[WINED3DTS_TEXTURE0 + texUnit].u.m[0][0], stateblock->textureState[texUnit][WINED3DTSS_TEXTURETRANSFORMFLAGS], generated, context->last_was_rhw, - stateblock->wineD3DDevice->strided_streams.elements[WINED3D_FFP_TEXCOORD0 + coordIdx].stride + stateblock->wineD3DDevice->strided_streams.use_map & (1 << (WINED3D_FFP_TEXCOORD0 + coordIdx)) ? stateblock->wineD3DDevice->strided_streams.elements[WINED3D_FFP_TEXCOORD0 + coordIdx].format_desc->format : WINED3DFMT_UNKNOWN, stateblock->wineD3DDevice->frag_pipe->ffp_proj_control);
participants (1)
-
Alexandre Julliard