diff options
| author | Léo Lam <leo@leolam.fr> | 2019-06-06 13:35:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-06 13:35:57 +0200 |
| commit | 3f4952d57c49dee21a2f92d2559f906d4c253af2 (patch) | |
| tree | 5511ef288aa216539a3b4fea5a0c52496a5c445f /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 824ec84e82ca259e0786b23bf3729bb6126409c8 (diff) | |
| parent | a9663669dc1037a04e37ae30efe18c0650547ac5 (diff) | |
Merge pull request #8152 from lioncash/array-size
Common/CommonFuncs: Remove now-unneccessary ArraySize function
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 50b58b3c9e..5afa56cd27 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -2,12 +2,12 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include <cmath> -#include <cstring> +#include "VideoCommon/PixelShaderManager.h" + +#include <iterator> #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" -#include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" @@ -114,7 +114,7 @@ void PixelShaderManager::SetConstants() constants.fogf[3] = static_cast<float>(g_renderer->EFBToScaledX(static_cast<int>(2.0f * xfmem.viewport.wd))); - for (size_t i = 0, vec_index = 0; i < ArraySize(bpmem.fogRange.K); i++) + for (size_t i = 0, vec_index = 0; i < std::size(bpmem.fogRange.K); i++) { constexpr float scale = 4.0f; constants.fogrange[vec_index / 4][vec_index % 4] = bpmem.fogRange.K[i].GetValue(0) * scale; |
