Henri Verbeet : wined3d: Properly keep texture references in the stateblock .