diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-07-06 13:36:36 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-07-06 19:56:35 -0400 |
| commit | 34c3a65de69066da6e71ccc7e1cb0205fd826b00 (patch) | |
| tree | e6e5ee8aa975b9c4fe23c0b9dd24817526b95f15 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 3d1a7737d86f4ecdf0131f5b84198f288800da3b (diff) | |
VideoCommon/TextureCacheBase: Resolve a -Wmissing-braces warning in GetRAMCopyFilterCoefficients()
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 8881ad2457..cd8a024fbc 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1515,14 +1515,15 @@ TextureCacheBase::CopyFilterCoefficientArray TextureCacheBase::GetRAMCopyFilterC { // To simplify the backend, we precalculate the three coefficients in common. Coefficients 0, 1 // are for the row above, 2, 3, 4 are for the current pixel, and 5, 6 are for the row below. - return { + return {{ static_cast<float>(static_cast<u32>(coefficients[0]) + static_cast<u32>(coefficients[1])) / 64.0f, static_cast<float>(static_cast<u32>(coefficients[2]) + static_cast<u32>(coefficients[3]) + static_cast<u32>(coefficients[4])) / 64.0f, static_cast<float>(static_cast<u32>(coefficients[5]) + static_cast<u32>(coefficients[6])) / - 64.0f}; + 64.0f, + }}; } TextureCacheBase::CopyFilterCoefficientArray TextureCacheBase::GetVRAMCopyFilterCoefficients( |
