Fixed semantic error in class Texture