[PATCH 1/5] wined3d: Store the wined3d primitive type in the wined3d state structure.