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