D3D: Reset viewport before drawing the OSD.

This commit is contained in:
Jules Blok 2014-06-16 23:34:07 +02:00
parent 7416b9cdb4
commit 6c52ec93b7
1 changed files with 4 additions and 0 deletions

View File

@ -896,6 +896,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
bLastFrameDumped = false;
}
// Reset viewport for drawing text
vp = CD3D11_VIEWPORT(0.0f, 0.0f, (float)GetBackbufferWidth(), (float)GetBackbufferHeight());
D3D::context->RSSetViewports(1, &vp);
// Finish up the current frame, print some stats
if (g_ActiveConfig.bShowFPS)
{