diff options
author | Joshie <joshua@froggi.es> | 2021-07-04 19:43:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 19:43:35 +0300 |
commit | 5362ef7f1a4c77f404f588156b90123c0ddc90fb (patch) | |
tree | 4bce49ee850dab0e1ab3ca462e709038917391cc | |
parent | 95791329429c90b0affc9d2d91415b5a03f29c3a (diff) |
[util] Fix indexing of non-float vectorsint-vector-indexing
-rw-r--r-- | src/util/util_vector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/util_vector.h b/src/util/util_vector.h index e7ab5f90..77cdf294 100644 --- a/src/util/util_vector.h +++ b/src/util/util_vector.h @@ -23,8 +23,8 @@ namespace dxvk { Vector4Base(const Vector4Base<T>& other) = default; - inline float& operator[](size_t index) { return data[index]; } - inline const float& operator[](size_t index) const { return data[index]; } + inline T& operator[](size_t index) { return data[index]; } + inline const T& operator[](size_t index) const { return data[index]; } bool operator==(const Vector4Base<T>& other) const { for (uint32_t i = 0; i < 4; i++) { @@ -158,4 +158,4 @@ namespace dxvk { return result; } -}
\ No newline at end of file +} |