aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-10-29 18:57:34 -0300
committerGitHub <noreply@github.com>2020-10-29 22:57:34 +0100
commit423da5cc911bf7545746ad4fd184eff42f32dd9b (patch)
treec554fe100de8be953a8a492d4386e23e6a91b7e8 /Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs
parent780c7530d69068dd651c33e18828e23dc6977d90 (diff)
Scale texture resolution before sending to backend (#1646)
* Work * Propagate scale factor to copy temp. Not really needed, just here for consistency * PR feedback
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs11
1 files changed, 5 insertions, 6 deletions
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;