wined3d: Do not change the texture unit when binding surfaces.
commitd49c9bbcbe5b2461ca685f45da740b8f0ff400c8
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 11 Feb 2008 00:18:06 +0000 (11 01:18 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 18 Feb 2008 12:34:13 +0000 (18 13:34 +0100)
tree232c56bc003206b4ebb6e1f45da32a60725714e9
parentb1e1df5117a9f60884bfea3e28d53dc37f117ec8
wined3d: Do not change the texture unit when binding surfaces.

Changing the texture unit when binding a surface for loading can break
the state manager in the way that it changes the currently active
texture unit while it is setting up a texture that has to be loaded.
Instead find out the current unit to dirtify the correct sampler.
dlls/wined3d/surface.c