d3d: Fix texture scaling.