diff options
| author | 2020-03-14 00:13:58 -0300 | |
|---|---|---|
| committer | 2020-03-14 00:13:58 -0300 | |
| commit | d71d7d917ea97c0e00602a714868f48445c8cd50 (patch) | |
| tree | 1be7d20173ea6cfbe68aeae860d9a94a41dea990 /src/video_core/textures/astc.cpp | |
| parent | astc: Call std::vector:reserve on decodedClolorValues to avoid reallocating (diff) | |
| download | yuzu-d71d7d917ea97c0e00602a714868f48445c8cd50.tar.gz yuzu-d71d7d917ea97c0e00602a714868f48445c8cd50.tar.xz yuzu-d71d7d917ea97c0e00602a714868f48445c8cd50.zip | |
astc: Pass val in Replicate by copy
Diffstat (limited to 'src/video_core/textures/astc.cpp')
| -rw-r--r-- | src/video_core/textures/astc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index c15548d34..028670800 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp | |||
| @@ -628,7 +628,7 @@ static void FillError(u32* outBuf, u32 blockWidth, u32 blockHeight) { | |||
| 628 | // Replicates low numBits such that [(toBit - 1):(toBit - 1 - fromBit)] | 628 | // Replicates low numBits such that [(toBit - 1):(toBit - 1 - fromBit)] |
| 629 | // is the same as [(numBits - 1):0] and repeats all the way down. | 629 | // is the same as [(numBits - 1):0] and repeats all the way down. |
| 630 | template <typename IntType> | 630 | template <typename IntType> |
| 631 | static IntType Replicate(const IntType& val, u32 numBits, u32 toBit) { | 631 | static IntType Replicate(IntType val, u32 numBits, u32 toBit) { |
| 632 | if (numBits == 0) | 632 | if (numBits == 0) |
| 633 | return 0; | 633 | return 0; |
| 634 | if (toBit == 0) | 634 | if (toBit == 0) |