wined3d: Check the correct vertex sampler in device_unit_free_for_vs().

This commit is contained in:
Henri Verbeet 2009-08-17 09:39:06 +02:00 committed by Alexandre Julliard
parent 8cf7aa2bdd
commit 7a0670392c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {