Actually cache the last bound test texture.
Skip binding when the test won't be used.