Stefan Dösinger : wined3d: Move render state applying to drawprim.