From 80247835020092c598fcee519f77e7d581b4d146 Mon Sep 17 00:00:00 2001 From: Nolan Check Date: Thu, 12 May 2011 02:14:45 +0000 Subject: 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 --- Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp') diff --git a/Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp b/Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp index 0dd1399100..1e27c16a34 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/PSTextureEncoder.cpp @@ -1080,10 +1080,10 @@ size_t PSTextureEncoder::Encode(u8* dst, unsigned int dstFormat, params.NumBlocksY = FLOAT(numBlocksY); params.PosX = FLOAT(correctSrc.left); params.PosY = FLOAT(correctSrc.top); - params.TexLeft = float(targetRect.left) / g_renderer->GetFullTargetWidth(); - params.TexTop = float(targetRect.top) / g_renderer->GetFullTargetHeight(); - params.TexRight = float(targetRect.right) / g_renderer->GetFullTargetWidth(); - params.TexBottom = float(targetRect.bottom) / g_renderer->GetFullTargetHeight(); + params.TexLeft = float(targetRect.left) / g_renderer->GetTargetWidth(); + params.TexTop = float(targetRect.top) / g_renderer->GetTargetHeight(); + params.TexRight = float(targetRect.right) / g_renderer->GetTargetWidth(); + params.TexBottom = float(targetRect.bottom) / g_renderer->GetTargetHeight(); D3D::g_context->UpdateSubresource(m_encodeParams, 0, NULL, ¶ms, 0, 0); D3D::g_context->VSSetConstantBuffers(0, 1, &m_encodeParams); -- cgit v1.2.3