Merge pull request #497 from Armada651/osd-scaling

D3D: Reset viewport before drawing the OSD.
This commit is contained in:
Tony Wasserka 2014-06-19 15:26:10 +02:00
commit e642c8d0c1

View file

@ -896,6 +896,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
bLastFrameDumped = false; 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 // Finish up the current frame, print some stats
if (g_ActiveConfig.bShowFPS) if (g_ActiveConfig.bShowFPS)
{ {