Texture uploading bug fix.