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_VideoDX9/Src/TextureCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp') diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp index b7b77e6d9b..7c741e08a9 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp @@ -132,7 +132,7 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo int SSAAMode = g_ActiveConfig.iMultisampleMode; D3D::drawShadedTexQuad(read_texture, &sourcerect, - Renderer::GetFullTargetWidth(), Renderer::GetFullTargetHeight(), + Renderer::GetTargetWidth(), Renderer::GetTargetHeight(), virtualW, virtualH, // TODO: why is D3DFMT_D24X8 singled out here? why not D3DFMT_D24X4S4/D24S8/D24FS8/D32/D16/D15S1 too, or none of them? PixelShaderCache::GetDepthMatrixProgram(SSAAMode, (srcFormat == PIXELFMT_Z24) && bformat != FOURCC_RAWZ && bformat != D3DFMT_D24X8), @@ -146,8 +146,8 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo hash = TextureConverter::EncodeToRamFromTexture( addr, read_texture, - Renderer::GetFullTargetWidth(), - Renderer::GetFullTargetHeight(), + Renderer::GetTargetWidth(), + Renderer::GetTargetHeight(), srcFormat == PIXELFMT_Z24, isIntensity, dstFormat, -- cgit v1.2.3