Fixed a silly bug in Texture.