Make stainedGlass work with HMC.