Resolve active render target in D3D9 before switch

On D3D9 platforms that work on active render target instead of
a specified surface, the resovle of the previous RT must happen
before the new RT becomes active.
Merge pull request #140 from mendsley/resolve

Resolve active render target in D3D9 before switch