frees memory in Texture2D::Draw