moved multisampled texture copy to the right place