d3d: Fix switching between rendering modes.
Merge pull request #6887 from unknownbrackets/vtxdec-centralize

d3d: Fix switching between rendering modes