diff options
| author | Nolan Check <Nolan.Check@gmail.com> | 2011-05-12 02:14:45 +0000 |
|---|---|---|
| committer | Nolan Check <Nolan.Check@gmail.com> | 2011-05-12 02:14:45 +0000 |
| commit | 80247835020092c598fcee519f77e7d581b4d146 (patch) | |
| tree | c147fd97251c19f401fddda32900974a3fdbf407 /Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp | |
| parent | 8cb2443c2fe22196c26d6e15608273dbc9e6551f (diff) | |
Don't resize render target to handle out-of-bounds viewports. Instead, adjust the projection matrix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7538 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp b/Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp index e1a0c9e32e..a052567102 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/FramebufferManager.cpp @@ -54,8 +54,8 @@ D3DTexture2D* FramebufferManager::GetResolvedEFBDepthTexture() FramebufferManager::FramebufferManager() { - const unsigned int target_width = Renderer::GetFullTargetWidth(); - const unsigned int target_height = Renderer::GetFullTargetHeight(); + const unsigned int target_width = Renderer::GetTargetWidth(); + const unsigned int target_height = Renderer::GetTargetHeight(); DXGI_SAMPLE_DESC sample_desc = D3D::GetAAMode(g_ActiveConfig.iMultisampleMode); // EFB color texture - primary render target @@ -221,7 +221,7 @@ void XFBSource::CopyEFB(float Gamma) D3D::SetLinearCopySampler(); D3D::drawShadedTexQuad(FramebufferManager::GetEFBColorTexture()->GetSRV(), sourceRc.AsRECT(), - Renderer::GetFullTargetWidth(), Renderer::GetFullTargetHeight(), + Renderer::GetTargetWidth(), Renderer::GetTargetHeight(), PixelShaderCache::GetColorCopyProgram(true), VertexShaderCache::GetSimpleVertexShader(), VertexShaderCache::GetSimpleInputLayout(),Gamma); |
