Stefan Dösinger : wined3d: Select a proper texture unit in LockRect and dirtify the state.