upload frame to texture only when it was updated