Remove a few unneeded shader program switches.