d3d: Remove another use of D3DCOLOR.

Fixes more colors.
d3d: Set the lod bias for textures.

Why aren't these caching?
d3d: Cache sampler/render state like in GL.

Small 3% performance improvement.  Also, would prefer to have the bugs
from this now rather than later.
d3d: Scale positions by 128/32768.
Merge pull request #6791 from unknownbrackets/d3d

d3d: Enable state caching, fix another color issue, fix scale