summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-28 18:43:57 -0400
committerGitHub <noreply@github.com>2025-03-28 18:43:57 -0400
commit932b4abdcfab9bbef0583f2d820b0139afa94221 (patch)
tree18f0567f7d2414386d74dc60ffcc6cdddd95e2dc /Source/Core/VideoBackends
parent7d794897c4043b9ee8b278340cfeff02923512f4 (diff)
parente351f03cdf9371f63423fdda1ff168e0daff6966 (diff)
Merge pull request #13457 from jordan-woyak/efb-access-fix
VideoCommon: Fix out-of-bounds and disabled EFB access.
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/Null/NullGfx.cpp2
-rw-r--r--Source/Core/VideoBackends/Null/NullGfx.h2
-rw-r--r--Source/Core/VideoBackends/Software/SWEfbInterface.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/SWEfbInterface.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Null/NullGfx.cpp b/Source/Core/VideoBackends/Null/NullGfx.cpp
index ab60339d0b..61822d3c83 100644
--- a/Source/Core/VideoBackends/Null/NullGfx.cpp
+++ b/Source/Core/VideoBackends/Null/NullGfx.cpp
@@ -108,7 +108,7 @@ u32 NullEFBInterface::PeekColorInternal(u16 x, u16 y)
return 0;
}
-u32 NullEFBInterface::PeekDepth(u16 x, u16 y)
+u32 NullEFBInterface::PeekDepthInternal(u16 x, u16 y)
{
return 0;
}
diff --git a/Source/Core/VideoBackends/Null/NullGfx.h b/Source/Core/VideoBackends/Null/NullGfx.h
index 43d20a45a2..a84b3743d4 100644
--- a/Source/Core/VideoBackends/Null/NullGfx.h
+++ b/Source/Core/VideoBackends/Null/NullGfx.h
@@ -46,7 +46,7 @@ class NullEFBInterface final : public EFBInterfaceBase
void PokeDepth(u16 x, u16 y, u32 depth) override;
u32 PeekColorInternal(u16 x, u16 y) override;
- u32 PeekDepth(u16 x, u16 y) override;
+ u32 PeekDepthInternal(u16 x, u16 y) override;
};
} // namespace Null
diff --git a/Source/Core/VideoBackends/Software/SWEfbInterface.cpp b/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
index d269e8435a..1bfc00b938 100644
--- a/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
+++ b/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
@@ -742,7 +742,7 @@ u32 SWEFBInterface::PeekColorInternal(u16 x, u16 y)
return value;
}
-u32 SWEFBInterface::PeekDepth(u16 x, u16 y)
+u32 SWEFBInterface::PeekDepthInternal(u16 x, u16 y)
{
return EfbInterface::GetDepth(x, y);
}
diff --git a/Source/Core/VideoBackends/Software/SWEfbInterface.h b/Source/Core/VideoBackends/Software/SWEfbInterface.h
index 5f866ad227..1182d3b5e0 100644
--- a/Source/Core/VideoBackends/Software/SWEfbInterface.h
+++ b/Source/Core/VideoBackends/Software/SWEfbInterface.h
@@ -69,6 +69,6 @@ class SWEFBInterface final : public EFBInterfaceBase
void PokeDepth(u16 x, u16 y, u32 depth) override;
u32 PeekColorInternal(u16 x, u16 y) override;
- u32 PeekDepth(u16 x, u16 y) override;
+ u32 PeekDepthInternal(u16 x, u16 y) override;
};
} // namespace SW