aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-10-30 11:42:27 -0300
committergdkchan <gab.dark.100@gmail.com>2018-10-30 11:42:27 -0300
commit5a87e58183578f5b84ca8d01cbb76aed11820f78 (patch)
tree63666bbaa4c1e18bbcee885ec2900905c3f71b46
parent5b13ee655c4abef8b708319660796229788efcae (diff)
Fix regression caused by wrong time delta calculation on cache deletion methods
-rw-r--r--ChocolArm64/ATranslatorCache.cs2
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChocolArm64/ATranslatorCache.cs b/ChocolArm64/ATranslatorCache.cs
index 2d6af90b..199b44f8 100644
--- a/ChocolArm64/ATranslatorCache.cs
+++ b/ChocolArm64/ATranslatorCache.cs
@@ -138,7 +138,7 @@ namespace ChocolArm64
CacheBucket Bucket = Cache[Node.Value];
- long TimeDelta = Bucket.Timestamp - Timestamp;
+ long TimeDelta = Timestamp - Bucket.Timestamp;
if (TimeDelta <= MinTimeDelta)
{
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs
index a65ebcbb..efacb4d4 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLCachedResource.cs
@@ -157,7 +157,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
CacheBucket Bucket = Cache[Node.Value];
- long TimeDelta = Bucket.Timestamp - Timestamp;
+ long TimeDelta = Timestamp - Bucket.Timestamp;
if ((uint)TimeDelta <= (uint)MaxTimeDelta)
{