wined3d: Handle zero primitive count.