Stefan Dösinger : wined3d: Explicitly pass a wined3d_state structure to draw_primitive().