[PATCH 3/9] wined3d: Introduce wined3d_device_flush().