Module: wine Branch: master Commit: 7a0670392c86962ba115d3f888733897f0a4690c URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a0670392c86962ba115d3f888... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 17 09:39:06 2009 +0200 wined3d: Check the correct vertex sampler in device_unit_free_for_vs(). --- dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 92d6ffd..256d6dc 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3762,7 +3762,7 @@ static BOOL device_unit_free_for_vs(IWineD3DDeviceImpl *This, const DWORD *pshad } /* Used by a vertex sampler */ - return !vshader_sampler_tokens[current_mapping]; + return !vshader_sampler_tokens[current_mapping - MAX_FRAGMENT_SAMPLERS]; } static void device_map_vsamplers(IWineD3DDeviceImpl *This, BOOL ps) {