summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2019-06-29 09:36:33 +0200
committerGitHub <noreply@github.com>2019-06-29 09:36:33 +0200
commita9099fc96ba35e4c98f25cda053806fb71fcd683 (patch)
tree8307916a5a84398e5ce2500e5d4c3566d831f12f /Source/Core/VideoCommon/VertexManagerBase.cpp
parent274b52acb25231272dd8a8b88decd026293fc0fa (diff)
parentc1c52767290cdbfb06eed4180f19cc5fd5166977 (diff)
Merge pull request #8207 from lioncash/macro
VideoCommon/Statistics: Use std::array for projection values
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 06168c6cec..a539d2673b 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -384,15 +384,15 @@ void VertexManagerBase::Flush()
// Track some stats used elsewhere by the anamorphic widescreen heuristic.
if (!SConfig::GetInstance().bWii)
{
- float* rawProjection = xfmem.projection.rawProjection;
- bool viewport_is_4_3 = AspectIs4_3(xfmem.viewport.wd, xfmem.viewport.ht);
- if (AspectIs16_9(rawProjection[2], rawProjection[0]) && viewport_is_4_3)
+ const auto& raw_projection = xfmem.projection.rawProjection;
+ const bool viewport_is_4_3 = AspectIs4_3(xfmem.viewport.wd, xfmem.viewport.ht);
+ if (AspectIs16_9(raw_projection[2], raw_projection[0]) && viewport_is_4_3)
{
// Projection is 16:9 and viewport is 4:3, we are rendering an anamorphic
// widescreen picture.
m_flush_count_anamorphic++;
}
- else if (AspectIs4_3(rawProjection[2], rawProjection[0]) && viewport_is_4_3)
+ else if (AspectIs4_3(raw_projection[2], raw_projection[0]) && viewport_is_4_3)
{
// Projection and viewports are both 4:3, we are rendering a normal image.
m_flush_count_4_3++;