fix a bug when creating multisampling context