The basic shader needs to be temporarily disabled in this case. Add macros for temp store/restoring the state.