[PATCH v2 1/2] wined3d: Fully clean up the device state in wined3d_device_uninit_3d().