d3d: Begin centralizing framebuffer management.
Merge pull request #6866 from unknownbrackets/d3d9

d3d: Begin centralizing framebuffer management