From 423da5cc911bf7545746ad4fd184eff42f32dd9b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 29 Oct 2020 18:57:34 -0300 Subject: Scale texture resolution before sending to backend (#1646) * Work * Propagate scale factor to copy temp. Not really needed, just here for consistency * PR feedback --- Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs') diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs b/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs index 02ae3b58..28401138 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs +++ b/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs @@ -15,16 +15,15 @@ namespace Ryujinx.Graphics.OpenGL.Image int srcLayer, int dstLayer, int srcLevel, - int dstLevel, - float scaleFactor = 1f) + int dstLevel) { - int srcWidth = (int)Math.Ceiling(srcInfo.Width * scaleFactor); - int srcHeight = (int)Math.Ceiling(srcInfo.Height * scaleFactor); + int srcWidth = srcInfo.Width; + int srcHeight = srcInfo.Height; int srcDepth = srcInfo.GetDepthOrLayers(); int srcLevels = srcInfo.Levels; - int dstWidth = (int)Math.Ceiling(dstInfo.Width * scaleFactor); - int dstHeight = (int)Math.Ceiling(dstInfo.Height * scaleFactor); + int dstWidth = dstInfo.Width; + int dstHeight = dstInfo.Height; int dstDepth = dstInfo.GetDepthOrLayers(); int dstLevels = dstInfo.Levels; -- cgit v1.2.3