fix bindTexture: invalid target warning

I guess this happens on the first restore, but it's worth keeping this clean of warnings!