Engine: D3D9 captures screen from back buffer instead of front buffer