1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[util] Fix indexing of non-float vectors

This commit is contained in:
Joshie 2021-07-04 17:43:35 +01:00 committed by Philip Rebohle
parent 9579132942
commit f9034007ac

View File

@ -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++) {