From 479abde9f4c752aaf1ca113d18159a74bc8aebb1 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 11 Oct 2015 13:37:41 +1300 Subject: BPMemory: Convert a number of unions to BitFields --- Source/Core/VideoBackends/Software/Tev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Software/Tev.cpp') 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(bpmem.fogRange.Base.Center) - 342)) / + float offset = (Position[0] - (static_cast(bpmem.fogRange.Base.Center.Value()) - 342)) / static_cast(xfmem.viewport.wd); // Based on that, choose the index such that points which are far away from the z-axis use the -- cgit v1.2.3