Cleanup some minor vertex cache stuff.
d3d: Fix auto texture scaling.

Fixes #6913.