mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-29 19:20:36 +00:00
D3D: Reset viewport before drawing the OSD.
This commit is contained in:
parent
7416b9cdb4
commit
6c52ec93b7
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user