Henri Verbeet : wined3d: Pass a state pointer instead of a device pointer to device_get_draw_rect() .