Add the setting and resetting code for the current shader program.