d3d: Fix switching between rendering modes

Need to clear the cache or we just get stuck in a breakpoint.

-[Unknown]