Stefan Dösinger : wined3d: Track GL texture states in a separate structure.