Thermally induced depolarization of radiation introduced by a system of two optical elements separated by a quartz rotator has been analyzed. The conditions of full compensation of thermally induced depolarization for two nonidentical optical elements have been found. The model experiment has demonstrated that full compensation in two optical elements of different materials is possible without a quartz rotator between them.