Henri Verbeet : wined3d: Store the wined3d primitive type in the wined3d state structure.