summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-10-11 13:37:41 +1300
committerStenzek <stenzek@gmail.com>2017-07-30 17:43:59 +1000
commit479abde9f4c752aaf1ca113d18159a74bc8aebb1 (patch)
tree54562b0155b83aec2d862654fb62d485aa610b77 /Source/Core/VideoBackends/Software
parent0a9574eaa10f30e63f13c8fc35d6afcbdb4b1d76 (diff)
BPMemory: Convert a number of unions to BitFields
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 5cd4491cc9..261b2535d1 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -769,7 +769,7 @@ void Tev::Draw()
// - scaling of the "k" coefficient isn't clear either.
// First, calculate the offset from the viewport center (normalized to 0..1)
- float offset = (Position[0] - (static_cast<s32>(bpmem.fogRange.Base.Center) - 342)) /
+ float offset = (Position[0] - (static_cast<s32>(bpmem.fogRange.Base.Center.Value()) - 342)) /
static_cast<float>(xfmem.viewport.wd);
// Based on that, choose the index such that points which are far away from the z-axis use the