Ahh, I guess that temp_bmap isn´t set.
You will have to generate it first. Btw, there is also a refraction shader in the pack, OS_HeatHaze.c.