Ivan Gyurdiev : wined3d: Make GetTexture and GetSamplerState read from the correct stateblock.