[PATCH] wined3d: Reset the CS state before unbinding the device state.