Fixed weird bug on Texture. Thanks to Bruno Sanches.