Guard occurences of ttexture with an #if.