Fixes for setting the multsample count when it is not set properly for multisampling.