diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2019-06-29 09:36:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-29 09:36:33 +0200 |
| commit | a9099fc96ba35e4c98f25cda053806fb71fcd683 (patch) | |
| tree | 8307916a5a84398e5ce2500e5d4c3566d831f12f /Source/Core/VideoBackends/Software/TransformUnit.cpp | |
| parent | 274b52acb25231272dd8a8b88decd026293fc0fa (diff) | |
| parent | c1c52767290cdbfb06eed4180f19cc5fd5166977 (diff) | |
Merge pull request #8207 from lioncash/macro
VideoCommon/Statistics: Use std::array for projection values
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TransformUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 4a55d1842f..9fae537527 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -58,7 +58,7 @@ static void MultiplyVec3Mat34(const Vec3& vec, const float* mat, Vec3& result) result.z = mat[8] * vec.x + mat[9] * vec.y + mat[10] * vec.z + mat[11]; } -static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& result) +static void MultipleVec3Perspective(const Vec3& vec, const Projection::Raw& proj, Vec4& result) { result.x = proj[0] * vec.x + proj[1] * vec.z; result.y = proj[2] * vec.y + proj[3] * vec.z; @@ -67,7 +67,7 @@ static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& re result.w = -vec.z; } -static void MultipleVec3Ortho(const Vec3& vec, const float* proj, Vec4& result) +static void MultipleVec3Ortho(const Vec3& vec, const Projection::Raw& proj, Vec4& result) { result.x = proj[0] * vec.x + proj[1]; result.y = proj[2] * vec.y + proj[3]; |
