Texture code added up to loading texture data into buffer