fix the issure that an untextured sprite can not call setTexture.