In this work, the effect of temperature increase on the efficiency of a double-pass cavity type II second-harmonic generation (SHG) is investigated. To this end, a depleted wave model describing the continuous-wave SHG process with fundamental Gaussian waves was developed. First, six coupled equations were proposed to model a double-pass cavity to generate the second harmonic of a Gaussian fundamental wave in type II configuration. Then, the effect of temperature increase in the nonlinear crystal due to the optical absorption was modeled. To do this, a mismatched phase arising from changes in refractive indices was added to the coupled equations. Although the nondepleted assumption is usually used in such problems, a simultaneous solving of coupled equations with assumption of fundamental beam depletion was performed. The results were obtained by a homemade code written in Intel Fortran, and show how the efficiency of the SHG process decreases when the crystal is warmed up by 5, 10, and 15 K. Dramatic reductions in SHG efficiency were observed due to small changes in temperature. The results show excellent agreement with the experimental data [Opt. Commun.173, 311-314 (2000)].