From f9034007accb2a38f8df09ce88123e9c6a4b3755 Mon Sep 17 00:00:00 2001 From: Joshie Date: Sun, 4 Jul 2021 17:43:35 +0100 Subject: [PATCH] [util] Fix indexing of non-float vectors --- src/util/util_vector.h | 6 +++--- 1 file 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& 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& other) const { for (uint32_t i = 0; i < 4; i++) { @@ -158,4 +158,4 @@ namespace dxvk { return result; } -} \ No newline at end of file +}