Fixed error where NULL texture still got sampled.