bug fix, memory leak if not manually call deleteTexture()