Henri Verbeet : d3d9: Use resource mapping functions in d3d9_device_DrawPrimitiveUP().