Zebediah Figura : wined3d: Check the writemask for the correct render target in draw_primitive().