Fixed an ordering issue.  Activating a shader must be done after the variables are set.