Henri Verbeet : wined3d: Get resource info from the rendertarget view in draw_primitive().