[PATCH v2 2/2] wined3d: Reset the CS state before cleaning up the device state.